5 implementations of TryGetData
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
114public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
643public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.cs (1)
285public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
212public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
240public bool TryGetData<T>(string format, [MaybeNullWhen(false), NotNullWhen(true)] out T data)
8 references to TryGetData
ComDisabled.Tests (3)
ClipboardComTests.cs (2)
34dataObject.TryGetData("testData", out SimpleTestData deserialized).Should().BeTrue(); 50returnedDataObject.TryGetData("testData", out SimpleTestData deserialized).Should().BeTrue();
DataObjectComTests.cs (1)
32typedOutData.TryGetData("testData", out SimpleTestData deserialized).Should().BeTrue();
System.Windows.Forms (3)
System\Windows\Forms\OLE\Clipboard.cs (1)
407return GetTypedDataObject<T>(format, out ITypedDataObject? typed) && typed.TryGetData(format, out data);
System\Windows\Forms\OLE\DataObjectExtensions.cs (2)
33/// <inheritdoc cref="ITypedDataObject.TryGetData{T}(string, out T)"/> 40GetTypedDataObjectOrThrow(dataObject).TryGetData(format, out data);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ClipboardTests.cs (1)
982returnedDataObject.TryGetData("testDataFormat", out SimpleTestData deserialized).Should().BeTrue();
System\Windows\Forms\DataObjectTests.cs (1)
2746typedOutData.TryGetData("point", out Point deserialized).Should().BeTrue();