blob: dbf4771cf68e5a65f94383acce19fcf66188c484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
// Windows.Foundation.Collections.IIterable`1 cannot be referenced from managed code because it's hidden
// by the metadata adapter. We redeclare the interface manually to be able to talk to native WinRT objects.
namespace System.Runtime.InteropServices.WindowsRuntime
{
[ComImport]
[Guid("faa585ea-6214-4217-afda-7f46de5869b3")]
[WindowsRuntimeImport]
internal interface IIterable<T> : IEnumerable<T>
{
[Pure]
IIterator<T> First();
}
[ComImport]
[Guid("036d2c08-df29-41af-8aa2-d774be62ba6f")]
[WindowsRuntimeImport]
internal interface IBindableIterable
{
[Pure]
IBindableIterator First();
}
}
|