Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Xml / System / Xml / Serialization / XmlArrayAttribute.cs / 1 / XmlArrayAttribute.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=false)]
public class XmlArrayAttribute : System.Attribute {
string elementName;
string ns;
bool nullable;
XmlSchemaForm form = XmlSchemaForm.None;
int order = -1;
///
///
/// [To be supplied.]
///
public XmlArrayAttribute() {
}
///
///
/// [To be supplied.]
///
public XmlArrayAttribute(string elementName) {
this.elementName = elementName;
}
///
///
/// [To be supplied.]
///
public string ElementName {
get { return elementName == null ? string.Empty : elementName; }
set { elementName = value; }
}
///
///
/// [To be supplied.]
///
public string Namespace {
get { return ns; }
set { ns = value; }
}
///
///
/// [To be supplied.]
///
public bool IsNullable {
get { return nullable; }
set { nullable = value; }
}
///
///
/// [To be supplied.]
///
public XmlSchemaForm Form {
get { return form; }
set { form = value; }
}
///
///
/// [To be supplied.]
///
public int Order {
get { return order; }
set {
if (value < 0)
throw new ArgumentException(Res.GetString(Res.XmlDisallowNegativeValues), "Order");
order = value;
}
}
}
}
// 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=false)]
public class XmlArrayAttribute : System.Attribute {
string elementName;
string ns;
bool nullable;
XmlSchemaForm form = XmlSchemaForm.None;
int order = -1;
///
///
/// [To be supplied.]
///
public XmlArrayAttribute() {
}
///
///
/// [To be supplied.]
///
public XmlArrayAttribute(string elementName) {
this.elementName = elementName;
}
///
///
/// [To be supplied.]
///
public string ElementName {
get { return elementName == null ? string.Empty : elementName; }
set { elementName = value; }
}
///
///
/// [To be supplied.]
///
public string Namespace {
get { return ns; }
set { ns = value; }
}
///
///
/// [To be supplied.]
///
public bool IsNullable {
get { return nullable; }
set { nullable = value; }
}
///
///
/// [To be supplied.]
///
public XmlSchemaForm Form {
get { return form; }
set { form = value; }
}
///
///
/// [To be supplied.]
///
public int Order {
get { return order; }
set {
if (value < 0)
throw new ArgumentException(Res.GetString(Res.XmlDisallowNegativeValues), "Order");
order = value;
}
}
}
}
// 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
- ConnectivityStatus.cs
- ResourcePart.cs
- RootNamespaceAttribute.cs
- DesignerListAdapter.cs
- HostedTransportConfigurationBase.cs
- TextEditorCharacters.cs
- OrderPreservingPipeliningSpoolingTask.cs
- ConstructorNeedsTagAttribute.cs
- Column.cs
- IsolatedStorage.cs
- RuntimeIdentifierPropertyAttribute.cs
- ValidatorUtils.cs
- FindCriteria.cs
- ConnectionPoint.cs
- ReachPageContentSerializer.cs
- MyContact.cs
- FacetEnabledSchemaElement.cs
- ExtendedProtectionPolicyElement.cs
- SaveFileDialog.cs
- Helper.cs
- UserControlCodeDomTreeGenerator.cs
- DummyDataSource.cs
- SqlConnectionHelper.cs
- CombinedTcpChannel.cs
- WindowsAuthenticationModule.cs
- AccessDataSource.cs
- ServicePointManagerElement.cs
- FontCollection.cs
- CapiSymmetricAlgorithm.cs
- Behavior.cs
- SqlDeflator.cs
- TextComposition.cs
- Touch.cs
- LogicalMethodInfo.cs
- MenuRendererStandards.cs
- AutomationPropertyChangedEventArgs.cs
- ValidatingReaderNodeData.cs
- PasswordDeriveBytes.cs
- ObjectConverter.cs
- CodeSubDirectory.cs
- RewritingSimplifier.cs
- PropertyGrid.cs
- ListViewInsertedEventArgs.cs
- COAUTHIDENTITY.cs
- HtmlCommandAdapter.cs
- MarshalByRefObject.cs
- XmlAggregates.cs
- EventMap.cs
- ListControlDesigner.cs
- PathData.cs
- ButtonStandardAdapter.cs
- TextParagraphProperties.cs
- SystemIcmpV6Statistics.cs
- PartialCachingAttribute.cs
- ConnectivityStatus.cs
- MarkerProperties.cs
- ParserHooks.cs
- WebPartTransformerAttribute.cs
- ObjectTypeMapping.cs
- XmlSigningNodeWriter.cs
- DelegatedStream.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SkinIDTypeConverter.cs
- FixedStringLookup.cs
- EventSinkActivity.cs
- TrackingProfileDeserializationException.cs
- ColorContext.cs
- WebBrowserEvent.cs
- WebMessageBodyStyleHelper.cs
- DES.cs
- MemoryStream.cs
- _StreamFramer.cs
- ScrollEvent.cs
- ContextMenu.cs
- AxisAngleRotation3D.cs
- FrugalList.cs
- DataServiceExpressionVisitor.cs
- TextSpanModifier.cs
- DataSourceGroupCollection.cs
- DataTablePropertyDescriptor.cs
- SemanticResultValue.cs
- XNodeNavigator.cs
- DataGridViewCellStyleBuilderDialog.cs
- MsmqReceiveHelper.cs
- HotSpot.cs
- XmlNamespaceDeclarationsAttribute.cs
- PromptStyle.cs
- IHttpResponseInternal.cs
- ExpressionBindingsDialog.cs
- EUCJPEncoding.cs
- ThicknessAnimationUsingKeyFrames.cs
- WebBrowser.cs
- GridSplitter.cs
- LazyLoadBehavior.cs
- InfoCardCryptoHelper.cs
- IRCollection.cs
- ZipPackagePart.cs
- Style.cs
- UTF8Encoding.cs
- AppDomainManager.cs