Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Serialization / XmlAnyElementAttribute.cs / 1 / XmlAnyElementAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization {
using System;
using System.Xml.Schema;
///
///
/// [To be supplied.]
///
[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;
///
///
/// [To be supplied.]
///
public XmlAnyElementAttribute() {
}
///
///
/// [To be supplied.]
///
public XmlAnyElementAttribute(string name) {
this.name = name;
}
///
///
/// [To be supplied.]
///
public XmlAnyElementAttribute(string name, string ns) {
this.name = name;
this.ns = ns;
nsSpecified = true;
}
///
///
/// [To be supplied.]
///
public string Name {
get { return name == null ? string.Empty : name; }
set { name = value; }
}
///
///
/// [To be supplied.]
///
public string Namespace {
get { return ns; }
set {
ns = value;
nsSpecified = true;
}
}
///
///
/// [To be supplied.]
///
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; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization {
using System;
using System.Xml.Schema;
///
///
/// [To be supplied.]
///
[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;
///
///
/// [To be supplied.]
///
public XmlAnyElementAttribute() {
}
///
///
/// [To be supplied.]
///
public XmlAnyElementAttribute(string name) {
this.name = name;
}
///
///
/// [To be supplied.]
///
public XmlAnyElementAttribute(string name, string ns) {
this.name = name;
this.ns = ns;
nsSpecified = true;
}
///
///
/// [To be supplied.]
///
public string Name {
get { return name == null ? string.Empty : name; }
set { name = value; }
}
///
///
/// [To be supplied.]
///
public string Namespace {
get { return ns; }
set {
ns = value;
nsSpecified = true;
}
}
///
///
/// [To be supplied.]
///
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; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpDigestClientCredential.cs
- ErrorFormatterPage.cs
- ExtenderProvidedPropertyAttribute.cs
- BufferedWebEventProvider.cs
- xmlfixedPageInfo.cs
- TdsParserSessionPool.cs
- UdpChannelListener.cs
- ConfigXmlWhitespace.cs
- StateDesigner.LayoutSelectionGlyph.cs
- JumpPath.cs
- XPathScanner.cs
- BufferedOutputAsyncStream.cs
- DetailsViewModeEventArgs.cs
- Exception.cs
- KeyboardDevice.cs
- DependencyObjectValidator.cs
- PinnedBufferMemoryStream.cs
- securitycriticaldataformultiplegetandset.cs
- TableItemStyle.cs
- BamlLocalizabilityResolver.cs
- WorkflowPersistenceContext.cs
- XmlDeclaration.cs
- OledbConnectionStringbuilder.cs
- LifetimeServices.cs
- BmpBitmapDecoder.cs
- ObjectQueryState.cs
- FormViewCommandEventArgs.cs
- SqlWebEventProvider.cs
- SmiRequestExecutor.cs
- InvokeCompletedEventArgs.cs
- ListViewItemMouseHoverEvent.cs
- ImmutableCollection.cs
- BookmarkNameHelper.cs
- followingsibling.cs
- DateTimeOffsetStorage.cs
- TraceHwndHost.cs
- TextRenderer.cs
- DataGridViewDataConnection.cs
- Configuration.cs
- ConversionContext.cs
- ToolStripSplitStackLayout.cs
- SQLBytesStorage.cs
- BaseDataBoundControl.cs
- SecurityException.cs
- BaseCodeDomTreeGenerator.cs
- Column.cs
- SqlEnums.cs
- MembershipValidatePasswordEventArgs.cs
- FlowDocumentFormatter.cs
- Pipe.cs
- RenderTargetBitmap.cs
- ToolStripDropDownClosedEventArgs.cs
- WindowHelperService.cs
- OutputBuffer.cs
- ManagementEventArgs.cs
- ExtenderHelpers.cs
- SectionUpdates.cs
- AuthStoreRoleProvider.cs
- AssociationSetMetadata.cs
- GeometryHitTestResult.cs
- CellConstantDomain.cs
- HwndTarget.cs
- InputLanguageSource.cs
- BlobPersonalizationState.cs
- ArrayHelper.cs
- PreProcessor.cs
- LayoutEngine.cs
- XmlElementList.cs
- ApplicationTrust.cs
- CodeNamespaceImportCollection.cs
- DataGridViewAccessibleObject.cs
- XmlSchemaAll.cs
- DataControlField.cs
- DataRow.cs
- DecimalConstantAttribute.cs
- TableLayout.cs
- XmlHierarchicalDataSourceView.cs
- PeerNameRegistration.cs
- ToolStripLabel.cs
- PointConverter.cs
- ShadowGlyph.cs
- HGlobalSafeHandle.cs
- UnsafeNativeMethodsCLR.cs
- TypedTableBase.cs
- WSDualHttpBinding.cs
- RotateTransform.cs
- X509ThumbprintKeyIdentifierClause.cs
- ScaleTransform.cs
- _SafeNetHandles.cs
- DiagnosticTraceRecords.cs
- FactorySettingsElement.cs
- SiteMapNodeCollection.cs
- EventSetter.cs
- _LocalDataStoreMgr.cs
- DataGridViewCellCancelEventArgs.cs
- InternalControlCollection.cs
- DataFormats.cs
- BooleanFunctions.cs
- RawAppCommandInputReport.cs
- userdatakeys.cs