diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IReference.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IReference.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IReference.cs b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IReference.cs new file mode 100644 index 0000000000..d0101dafc9 --- /dev/null +++ b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IReference.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +// + +using System; + +namespace System.Runtime.InteropServices.WindowsRuntime +{ + [ComImport] + [Guid("61c17706-2d65-11e0-9ae8-d48564015472")] + [WindowsRuntimeImport] + // Note that ideally, T should be constrained to be a value type. However, Windows uses IReference<HSTRING> + // and the projection may not be exactly pretty. + internal interface IReference<T> : IPropertyValue + { + T Value { get; } + } + + [ComImport] + [Guid("61c17707-2d65-11e0-9ae8-d48564015472")] + [WindowsRuntimeImport] + // T can be any WinRT-compatible type, including reference types. + internal interface IReferenceArray<T> : IPropertyValue + { + T[] Value { get; } + } +} |