-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathQueryOption.cs
27 lines (24 loc) · 1019 Bytes
/
QueryOption.cs
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
// 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.
namespace Microsoft.Toolkit.Graph.Controls
{
/// <summary>
/// XAML Proxy for <see cref="Microsoft.Graph.QueryOption"/>.
/// </summary>
public sealed class QueryOption
{
/// <inheritdoc cref="Microsoft.Graph.Option.Name"/>
public string Name { get; set; }
/// <inheritdoc cref="Microsoft.Graph.Option.Value"/>
public string Value { get; set; }
/// <summary>
/// Implicit conversion for <see cref="QueryOption"/> to <see cref="Microsoft.Graph.QueryOption"/>.
/// </summary>
/// <param name="option">query option to convert.</param>
public static implicit operator Microsoft.Graph.QueryOption(QueryOption option)
{
return new Microsoft.Graph.QueryOption(option.Name, option.Value);
}
}
}