5 references to TryGetData
System.Windows.Forms (2)
System\Windows\Forms\OLE\DataObject.Composition.cs (2)
117_winFormsDataObject.TryGetData(format, out data); 121_winFormsDataObject.TryGetData(typeof(T).FullName!, out data);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ClipboardTests.cs (1)
949dataObject.TryGetData("testDataFormat", out SimpleTestData deserialized).Should().BeTrue();
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
20Action tryGetData2 = () => DataObjectExtensions.TryGetData<string>(dataObject: null!, DataFormats.Text, out _); 47Action tryGetData = () => dataObject.TryGetData<string>(DataFormats.Text, out _);