4 implementations of ITypedDataObject
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
21ITypedDataObject,
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
181internal class TypedDataObject : ITypedDataObject
System.Windows.Forms.TestUtilities (2)
Data\TypedAndRuntimeDataObject.cs (1)
11internal class TypedAndRuntimeDataObject : ManagedAndRuntimeDataObject, ITypedDataObject
Data\TypedDataObject.cs (1)
11internal class TypedDataObject : ManagedDataObject, ITypedDataObject
31 references to ITypedDataObject
ComDisabled.Tests (6)
ClipboardComTests.cs (4)
34ITypedDataObject dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject; 51ITypedDataObject returnedDataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject;
DataObjectComTests.cs (2)
30ITypedDataObject typedOutData = outData.Should().BeAssignableTo<ITypedDataObject>().Subject;
System.Windows.Forms (17)
System\Windows\Forms\OLE\Clipboard.cs (2)
255/// the <see cref="IDataObject"/> on the <see cref="Clipboard"/> does not implement <see cref="ITypedDataObject"/> 382if (data is ITypedDataObject typed)
System\Windows\Forms\OLE\DataObject.cs (3)
57/// we strongly recommend implementing <see cref="ITypedDataObject"/> interface to support the 60/// if <see cref="ITypedDataObject"/> is not implemented. 217/// <inheritdoc cref="ITypedDataObject.TryGetData{T}(string, Func{TypeName, Type}, bool, out T)" />
System\Windows\Forms\OLE\DataObjectExtensions.cs (10)
11private static ITypedDataObject GetTypedDataObjectOrThrow(IDataObject dataObject) 15if (dataObject is not ITypedDataObject typed) 25/// <inheritdoc cref="ITypedDataObject.TryGetData{T}(out T)"/> 26/// <exception cref="NotSupportedException">if the <paramref name="dataObject"/> does not implement <see cref="ITypedDataObject" />.</exception> 33/// <inheritdoc cref="ITypedDataObject.TryGetData{T}(string, out T)"/> 34/// <exception cref="NotSupportedException">if the <paramref name="dataObject"/> does not implement <see cref="ITypedDataObject" />.</exception> 42/// <inheritdoc cref="ITypedDataObject.TryGetData{T}(string, bool, out T)"/> 43/// <exception cref="NotSupportedException">if the <paramref name="dataObject"/> does not implement <see cref="ITypedDataObject" />.</exception> 52/// <inheritdoc cref="ITypedDataObject.TryGetData{T}(string, Func{Reflection.Metadata.TypeName, Type}, bool, out T)"/> 53/// <exception cref="NotSupportedException">if the <paramref name="dataObject"/> does not implement <see cref="ITypedDataObject" />.</exception>
System\Windows\Forms\OLE\IDataObject.cs (2)
13/// When implementing a <see cref="IDataObject"/>, consider implementing <see cref="ITypedDataObject"/> 15/// is exchanged. If <see cref="ITypedDataObject"/> is not implemented by a data object exchanged
System.Windows.Forms.Tests (8)
System\Windows\Forms\ClipboardTests.cs (6)
981ITypedDataObject returnedDataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject; 1117received.Should().BeAssignableTo<ITypedDataObject>(); 1367if (copy || typeof(T).IsAssignableTo(typeof(ITypedDataObject))) 1371ITypedDataObject received = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject;
System\Windows\Forms\DataObjectTests.cs (2)
2833ITypedDataObject typedOutData = outData.Should().BeAssignableTo<ITypedDataObject>().Subject;