Implemented interface member:
method
GetData
System.Windows.Forms.IDataObject.GetData(System.String)
18 references to GetData
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
243public virtual object? GetData(Type format) => format is null ? null : GetData(format.FullName!);
System.Windows.Forms.Tests (17)
System\Windows\Forms\ClipboardTests.cs (4)
666dataObject.GetData(DataFormats.Text).Should().Be(testString); 915dataObject.GetData(format).Should().BeOfType<MemoryStream>(); 922var result1 = dataObject.GetData(format); 934dataObject.GetData(format).Should().BeEquivalentTo(generic2);
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
116dataObject.GetData(format).Should().BeSameAs(input);
System\Windows\Forms\DataObjectTests.cs (12)
258dataObject.GetData(format).Should().BeNull(); 281.Setup(o => o.GetData(format)) 287mockDataObject.Object.GetData(format).Should().BeSameAs(result); 301dataObject.GetData(format).Should().BeSameAs(result); 367.Setup(o => o.GetData(formatName)) 371mockDataObject.Verify(o => o.GetData(formatName), Times.Exactly(expectedCallCount)); 1197dataObject.GetData(format).Should().Be(input); 1226dataObject.GetData(format).Should().Be(input); 1841data.GetData(DataFormats.EnhancedMetafile).Should().BeNull(); 3009dataObject.GetData(format).Should().Be(1); 3020data.GetData(format).Should().Be(1); 3034data.GetData(format).Should().BeNull();