Implemented interface member:
method
TryGetData<T>
System.Windows.Forms.ITypedDataObject.TryGetData<T>(System.String, System.Func<System.Reflection.Metadata.TypeName, System.Type>, System.Boolean, out T)
18 references to TryGetData
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
102
dataObject.
TryGetData
(DataFormats.SymbolicLink, Resolver, autoConvert, out DateTime? date).Should().BeFalse();
System\Windows\Forms\DataObjectTests.cs (8)
493
dataObject.
TryGetData
(format, DataObjectOverridesTryGetDataCore.Resolver, autoConvert, out string? data).Should().BeFalse();
506
Action tryGetData = () => dataObject.
TryGetData
(format, DataObjectOverridesTryGetDataCore.Resolver, autoConvert, out string? data);
1233
_ = dataObject.
TryGetData
(format, NotSupportedResolver, autoConvert: true, out object _).Should().Be(input is not null);
1234
_ = dataObject.
TryGetData
(format, NotSupportedResolver, autoConvert: false, out object _).Should().Be(input is not null);
1236
dataObject.
TryGetData
(format, NotSupportedResolver, autoConvert: false, out string data).Should().Be(input is not null);
1238
dataObject.
TryGetData
(format, NotSupportedResolver, autoConvert: true, out data).Should().Be(input is not null);
1386
dataObject.
TryGetData
(format, NotSupportedResolver, autoConvert: false, out data).Should().Be(input is not null);
1388
dataObject.
TryGetData
(format, NotSupportedResolver, autoConvert: true, out data).Should().Be(input is not null);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (9)
55
dataObject.
TryGetData
(format, Resolver, autoConvert: false, out object? value).Should().BeTrue();
280
dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out TestData? testData).Should().BeTrue();
290
Action tryGetData = () => dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out TestData? _);
302
Action tryGetData = () => dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out TestData? _);
318
dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out TestData? testData).Should().BeFalse();
384
dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out AbstractBase? testData).Should().BeFalse();
397
dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out AbstractBase? testData).Should().BeTrue();
409
Action tryGetData = () => dataObject.
TryGetData
(format, TestData.Resolver, autoConvert: true, out AbstractBase? _);
443
dataObject.
TryGetData
("test", SimpleTestData.Resolver, autoConvert: false, out SimpleTestDataBase? deserialized).Should().BeTrue();