1 implementation of CreateDelegate
System.Private.Windows.Core.TestUtilities (1)
TestAccessor.cs (1)
61public TDelegate CreateDelegate<TDelegate>(string? methodName = null)
30 references to CreateDelegate
ComDisabled.Tests (3)
DataObjectComTests.cs (3)
29IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 49IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 67IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr);
System.Private.Windows.Core.TestUtilities (3)
BinaryFormatterInClipboardDragDropScope.cs (1)
38bool value = type.TestAccessor().CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")
NrbfSerializerInClipboardDragDropScope.cs (1)
38bool value = type.TestAccessor().CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")
TestAccessors.cs (1)
29/// Use <see cref="ITestAccessor.CreateDelegate">CreateDelegate</see> to deal with methods that take spans or
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ImageListImageEditorTests.cs (1)
15var editor_LoadImageFromStream = editor.TestAccessor().CreateDelegate<Func<Stream, bool, ImageListImage>>("LoadImageFromStream");
System.Windows.Forms.Tests (16)
System\Windows\Forms\DataObjectComTests.cs (2)
28IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 46IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr);
System\Windows\Forms\DataObjectTests.cs (5)
2719IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 2742IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 2761IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 2778IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr); 2794IDataObject outData = dropTargetAccessor.CreateDelegate<CreateWinFormsDataObjectForOutgoingDropData>()(inDataPtr);
System\Windows\Forms\FileDialogTests.cs (4)
798string[] result = accessor.CreateDelegate<GetMultiselectFiles>()(buffer); 804result = accessor.CreateDelegate<GetMultiselectFiles>()(buffer); 810result = accessor.CreateDelegate<GetMultiselectFiles>()(buffer); 816result = accessor.CreateDelegate<GetMultiselectFiles>()(buffer);
TestAccessorTests.cs (5)
121Assert.Equal(4, accessor.CreateDelegate<Func<int, int>>("ToStringLength")(2001)); 122Assert.Equal(7, accessor.CreateDelegate<Func<string, int>>("ToStringLength")("Flubber")); 130Assert.Equal(5, accessor.CreateDelegate<ToStringLength>()("25624")); 147Assert.Equal(2000, testClass.TestAccessor().CreateDelegate<Func<int, int>>("AddOne")(1999)); 150Assert.Equal(21, typeof(PrivateStaticTestClass).TestAccessor().CreateDelegate<Func<int, int>>("AddOne")(20));
System.Windows.Forms.TestUtilities (7)
AnchorLayoutV2Scope.cs (1)
38.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.AnchorLayoutV2);
ApplyParentFontToMenusScope.cs (1)
38.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.ApplyParentFontToMenus);
DataGridViewUIAStartRowCountAtZeroScope.cs (1)
37.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.DataGridViewUIAStartRowCountAtZero);
NoClientNotificationsScope.cs (1)
38.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.NoClientNotifications);
ScaleTopLevelFormMinMaxSizeForDpiScope.cs (1)
38.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.ScaleTopLevelFormMinMaxSizeForDpi);
ServicePointManagerCheckCrlScope.cs (1)
38.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.ServicePointManagerCheckCrl);
TreeNodeCollectionAddRangeRespectsSortOrderScope.cs (1)
38.CreateDelegate<Func<string, bool>>("GetSwitchDefaultValue")(WinFormsAppContextSwitchNames.TreeNodeCollectionAddRangeRespectsSortOrder);