5 implementations of ITypedDataObject
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
17
internal unsafe partial class Composition :
ITypedDataObject
, Com.IDataObject.Interface, ComTypes.IDataObject
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
20
private unsafe class NativeToWinFormsAdapter :
ITypedDataObject
, Com.IDataObject.Interface
System\Windows\Forms\OLE\DataObject.cs (1)
21
ITypedDataObject
,
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
14
private sealed partial class DataStore :
ITypedDataObject
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
181
internal class TypedDataObject :
ITypedDataObject
31 references to ITypedDataObject
ComDisabled.Tests (6)
ClipboardComTests.cs (4)
32
ITypedDataObject
dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<
ITypedDataObject
>().Subject;
49
ITypedDataObject
returnedDataObject = Clipboard.GetDataObject().Should().BeAssignableTo<
ITypedDataObject
>().Subject;
DataObjectComTests.cs (2)
30
ITypedDataObject
typedOutData = outData.Should().BeAssignableTo<
ITypedDataObject
>().Subject;
System.Windows.Forms (21)
System\Windows\Forms\OLE\Clipboard.cs (6)
336
/// the <see cref="IDataObject"/> on the <see cref="Clipboard"/> does not implement <see cref="
ITypedDataObject
"/>
396
return GetTypedDataObject<T>(format, out
ITypedDataObject
? typed)
407
return GetTypedDataObject<T>(format, out
ITypedDataObject
? typed) && typed.TryGetData(format, out data);
412
[NotNullWhen(true), MaybeNullWhen(false)] out
ITypedDataObject
typed)
422
if (dataObject is not
ITypedDataObject
typedDataObject)
474
if (data is
ITypedDataObject
typed)
System\Windows\Forms\OLE\DataObject.cs (3)
51
/// we strongly recommend implementing <see cref="
ITypedDataObject
"/> interface to support the
54
/// if <see cref="
ITypedDataObject
"/> is not implemented.
298
/// <inheritdoc cref="
ITypedDataObject
.TryGetData{T}(string, Func{TypeName, Type}, bool, out T)" />
System\Windows\Forms\OLE\DataObjectExtensions.cs (10)
11
private static
ITypedDataObject
GetTypedDataObjectOrThrow(IDataObject dataObject)
15
if (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)
11
/// When implementing a <see cref="IDataObject"/>, consider implementing <see cref="
ITypedDataObject
"/>
13
/// is exchanged. If <see cref="
ITypedDataObject
"/> is not implemented by a data object exchanged
System.Windows.Forms.Tests (4)
System\Windows\Forms\ClipboardTests.cs (2)
981
ITypedDataObject
returnedDataObject = Clipboard.GetDataObject().Should().BeAssignableTo<
ITypedDataObject
>().Subject;
System\Windows\Forms\DataObjectTests.cs (2)
2744
ITypedDataObject
typedOutData = outData.Should().BeAssignableTo<
ITypedDataObject
>().Subject;