blob: 71a8d48062b36a7196baaf0d94be56624c560d70 (
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
|
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Xamarin.PropertyEditing
{
public class Resource
{
public Resource (string name)
{
if (name == null)
throw new ArgumentNullException (nameof (name));
Name = name;
}
public string Name
{
get;
}
}
public interface IResourceProvider
{
/// <summary>
/// Gets the resources available to the given <paramref name="property"/>.
/// </summary>
/// <exception cref="ArgumentNullException"><paramref name="property"/> is <c>null</c>.</exception>
Task<IReadOnlyList<Resource>> GetResourcesAsync (IPropertyInfo property, CancellationToken cancelToken);
}
}
|