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