You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,86 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="XmlAnyElementAttribute.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// <owner current="true" primary="true">[....]</owner>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.Xml.Serialization {
|
||||
using System;
|
||||
using System.Xml.Schema;
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)]
|
||||
public class XmlAnyElementAttribute : System.Attribute {
|
||||
string name;
|
||||
string ns;
|
||||
int order = -1;
|
||||
bool nsSpecified = false;
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.XmlAnyElementAttribute"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public XmlAnyElementAttribute() {
|
||||
}
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.XmlAnyElementAttribute1"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public XmlAnyElementAttribute(string name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.XmlAnyElementAttribute2"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public XmlAnyElementAttribute(string name, string ns) {
|
||||
this.name = name;
|
||||
this.ns = ns;
|
||||
nsSpecified = true;
|
||||
}
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.Name"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public string Name {
|
||||
get { return name == null ? string.Empty : name; }
|
||||
set { name = value; }
|
||||
}
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.Namespace"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public string Namespace {
|
||||
get { return ns; }
|
||||
set {
|
||||
ns = value;
|
||||
nsSpecified = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.Order"]/*' />
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public int Order {
|
||||
get { return order; }
|
||||
set {
|
||||
if (value < 0)
|
||||
throw new ArgumentException(Res.GetString(Res.XmlDisallowNegativeValues), "Order");
|
||||
order = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal bool NamespaceSpecified {
|
||||
get { return nsSpecified; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user