Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlArrayAttribute.cs / 1305376 / 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
- Function.cs
- VirtualPathUtility.cs
- DSASignatureFormatter.cs
- BamlRecordWriter.cs
- XmlChoiceIdentifierAttribute.cs
- EdmProperty.cs
- RawUIStateInputReport.cs
- WindowsListViewGroup.cs
- EntitySqlQueryCacheEntry.cs
- GZipDecoder.cs
- CodeActivityMetadata.cs
- XamlToRtfParser.cs
- UrlMappingCollection.cs
- MapPathBasedVirtualPathProvider.cs
- EntityDataSourceWrapperCollection.cs
- BaseDataList.cs
- ObjectNavigationPropertyMapping.cs
- XmlResolver.cs
- QuadraticBezierSegment.cs
- ResizeGrip.cs
- Context.cs
- HttpModuleCollection.cs
- InstanceStoreQueryResult.cs
- ClientConfigurationHost.cs
- WebUtil.cs
- UnsafeNativeMethodsMilCoreApi.cs
- OleDbConnection.cs
- ToggleButtonAutomationPeer.cs
- ACL.cs
- ToolboxComponentsCreatedEventArgs.cs
- ColorConverter.cs
- FragmentQuery.cs
- IncrementalReadDecoders.cs
- XmlArrayAttribute.cs
- SupportingTokenProviderSpecification.cs
- DeadCharTextComposition.cs
- COM2ExtendedUITypeEditor.cs
- TableLayoutStyle.cs
- WindowsGraphics.cs
- HttpFileCollectionBase.cs
- ReachObjectContext.cs
- SecurityAlgorithmSuiteConverter.cs
- DeflateEmulationStream.cs
- XmlSerializationReader.cs
- _CommandStream.cs
- ModulesEntry.cs
- AssociationSet.cs
- WebControlParameterProxy.cs
- Int64Converter.cs
- XamlTemplateSerializer.cs
- SvcMapFile.cs
- Win32SafeHandles.cs
- DocumentGridContextMenu.cs
- InkCollectionBehavior.cs
- SmiXetterAccessMap.cs
- ContractMapping.cs
- RadioButtonPopupAdapter.cs
- Model3DGroup.cs
- TypedAsyncResult.cs
- WindowsImpersonationContext.cs
- DataGridColumnCollection.cs
- Properties.cs
- Group.cs
- DispatchWrapper.cs
- NameValueConfigurationElement.cs
- WindowsRebar.cs
- ArraySubsetEnumerator.cs
- GetCardDetailsRequest.cs
- Adorner.cs
- Animatable.cs
- XPathLexer.cs
- Trigger.cs
- XmlKeywords.cs
- ValidationException.cs
- PathFigure.cs
- MemberMaps.cs
- BinaryCommonClasses.cs
- While.cs
- BaseDataBoundControl.cs
- QueryParameter.cs
- TransactionFlowOption.cs
- TreeNodeStyleCollection.cs
- UITypeEditors.cs
- ISessionStateStore.cs
- ElementNotEnabledException.cs
- HwndHost.cs
- TextEmbeddedObject.cs
- SystemIPv4InterfaceProperties.cs
- DefaultCommandExtensionCallback.cs
- ContextConfiguration.cs
- StrokeNodeOperations.cs
- TextModifierScope.cs
- Row.cs
- DPCustomTypeDescriptor.cs
- FormatSettings.cs
- BehaviorEditorPart.cs
- IntSecurity.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlSchemaSimpleContent.cs
- DefinitionProperties.cs