6 references to DynamicInterfaceCastableImplementationAttribute
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (1)
45
/// <see cref="
DynamicInterfaceCastableImplementationAttribute
"/>. Otherwise,
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (2)
36
if (!implType.IsDefined(typeof(
DynamicInterfaceCastableImplementationAttribute
), inherit: false))
37
throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_MissingImplementationAttribute, implType, nameof(
DynamicInterfaceCastableImplementationAttribute
)));
System.Runtime.InteropServices (3)
artifacts\obj\System.Runtime.InteropServices\Debug\net10.0\System.Runtime.InteropServices.Forwards.cs (1)
89
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.
DynamicInterfaceCastableImplementationAttribute
))]
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
17
/// The strategy provides <see cref="
DynamicInterfaceCastableImplementationAttribute
"/>-based implementations of <see cref="ComImportAttribute"/>-attributed interfaces by dynamically generating an interface using <see cref="System.Reflection.Emit"/> that has the following shape:
79
implementation.SetCustomAttribute(new CustomAttributeBuilder(typeof(
DynamicInterfaceCastableImplementationAttribute
).GetConstructor(Array.Empty<Type>())!, Array.Empty<object>()));