Implemented interface member:
method
TryGetData<T>
System.Windows.Forms.ITypedDataObject.TryGetData<T>(System.String, out T)
38 references to TryGetData
System.Windows.Forms.Tests (38)
System\Windows\Forms\ClipboardTests.cs (1)
1083Action a3 = () => dataObject.TryGetData(format, out Font? _);
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
84dataObject.TryGetData(DataFormats.Dib, out Bitmap? bitmap).Should().BeFalse();
System\Windows\Forms\DataObjectTests.cs (11)
433dataObject.TryGetData(format, out string? data).Should().BeFalse(); 446Action tryGetData = () => dataObject.TryGetData(format, out string? data); 1230_ = dataObject.TryGetData(format, out object _).Should().Be(input is not null); 1378dataObject.TryGetData(format, out string data).Should().Be(input is not null); 2857dataObject.TryGetData(format, out SimpleTestData deserialized).Should().BeTrue(); 2870wrapped.TryGetData(format, out SimpleTestData deserialized).Should().BeTrue(); 2884data.TryGetData("testData1", out SimpleTestData deserializedTestData1).Should().BeTrue(); 2886data.TryGetData("testData2", out SimpleTestData deserializedTestData2).Should().BeTrue(); 2888data.TryGetData("Mystring", out string deserializedString).Should().BeTrue(); 2908dataObject.TryGetData("custom", out WeatherForecast deserialized).Should().BeTrue(); 3046dataObject.TryGetData("test", out Bitmap data).Should().BeFalse();
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (25)
39dataObject.TryGetData(format, out object? value).Should().BeTrue(); 52Action tryGetData = () => dataObject.TryGetData(format, out object? value); 71Action tryGetData = () => dataObject.TryGetData(format, out object? _); 92Action tryGetData = () => dataObject.TryGetData(format, out object? _); 102Action tryGetData = () => dataObject.TryGetData(format, out object? _); 116Action tryGetData = () => dataObject.TryGetData(format, out object? _); 131dataObject.TryGetData(format, out object? result).Should().BeFalse(); 144dataObject.TryGetData(format, out object? result).Should().BeFalse(); 157dataObject.TryGetData(format, out IList<int>? list).Should().BeTrue(); 172Action tryGetData = () => dataObject.TryGetData(format, out IList<int>? _); 186Action tryGetData = () => dataObject.TryGetData(format, out IList<int>? _); 201dataObject.TryGetData(format, out List<int>? list).Should().BeTrue(); 215Action tryGetData = () => dataObject.TryGetData(format, out List<int>? _); 225Action tryGetData = () => dataObject.TryGetData(format, out TestData? _); 243dataObject.TryGetData(format, out TestData? testData).Should().BeFalse(); 255dataObject.TryGetData(format, out TestData? testData).Should().BeFalse(); 266Action tryGetData = () => dataObject.TryGetData(format, out TestData? _); 332dataObject.TryGetData(format, out AbstractBase? testData).Should().BeFalse(); 343Action tryGetData = () => dataObject.TryGetData(format, out AbstractBase? _); 353Action tryGetData = () => dataObject.TryGetData(format, out AbstractBase? _); 357dataObject.TryGetData(format, out NotSupportedException? ex).Should().BeTrue(); 366Action tryGetData = () => dataObject.TryGetData(format, out AbstractBase? _); 427dataObject.TryGetData(format, out NotSerializableData? data).Should().BeFalse(); 440Action a = () => dataObject.TryGetData("test", out SimpleTestDataBase? _); 459Action a = () => dataObject.TryGetData(format, out SimpleTestDataBase? _);