/
XmlSchemaProviderAttribute.cs
43 lines (38 loc) · 1.12 KB
/
XmlSchemaProviderAttribute.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Xml.Schema;
namespace System.Xml.Serialization
{
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct)]
public sealed class XmlSchemaProviderAttribute : System.Attribute
{
private readonly string? _methodName;
private bool _any;
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public XmlSchemaProviderAttribute(string? methodName)
{
_methodName = methodName;
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public string? MethodName
{
get { return _methodName; }
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public bool IsAny
{
get { return _any; }
set { _any = value; }
}
}
}