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; ////// /// [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. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Expression.cs
- XmlUrlResolver.cs
- RoutedPropertyChangedEventArgs.cs
- FilterableAttribute.cs
- DataBinder.cs
- DynamicScriptObject.cs
- FillErrorEventArgs.cs
- RTLAwareMessageBox.cs
- PropertyPath.cs
- StreamWriter.cs
- DataServiceRequestOfT.cs
- XmlWriterTraceListener.cs
- DataKeyCollection.cs
- Logging.cs
- ClientType.cs
- FastEncoder.cs
- JpegBitmapEncoder.cs
- DataGridView.cs
- DataGridViewComboBoxColumn.cs
- Base64Decoder.cs
- ProcessModuleDesigner.cs
- ClaimComparer.cs
- ConsoleTraceListener.cs
- ComAdminWrapper.cs
- ParserStreamGeometryContext.cs
- MembershipPasswordException.cs
- ActivityBindForm.Designer.cs
- OneToOneMappingSerializer.cs
- FixedHighlight.cs
- ScriptingSectionGroup.cs
- CharAnimationUsingKeyFrames.cs
- WMICapabilities.cs
- ComAwareEventInfo.cs
- Calendar.cs
- SEHException.cs
- HwndMouseInputProvider.cs
- Control.cs
- TextInfo.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- FactoryMaker.cs
- GeneralTransformGroup.cs
- Image.cs
- GridViewDeleteEventArgs.cs
- EncryptedPackageFilter.cs
- AppDomainManager.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Literal.cs
- WebScriptEnablingBehavior.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- InternalControlCollection.cs
- NamespaceTable.cs
- WpfKnownMember.cs
- TemplateControlBuildProvider.cs
- DiagnosticSection.cs
- Tuple.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SupportingTokenAuthenticatorSpecification.cs
- CompiledQuery.cs
- VirtualPath.cs
- uribuilder.cs
- BuildProvider.cs
- ResourcesGenerator.cs
- WindowsImpersonationContext.cs
- IItemProperties.cs
- NativeConfigurationLoader.cs
- WindowsButton.cs
- ValidationPropertyAttribute.cs
- Misc.cs
- TreeNodeConverter.cs
- MobileResource.cs
- CqlErrorHelper.cs
- ThreadAbortException.cs
- SHA256.cs
- AuthenticatedStream.cs
- NumericExpr.cs
- SqlErrorCollection.cs
- InvalidAsynchronousStateException.cs
- RealizationDrawingContextWalker.cs
- LocatorGroup.cs
- WizardStepBase.cs
- HttpListenerException.cs
- CompileXomlTask.cs
- CommandEventArgs.cs
- MembershipPasswordException.cs
- Soap12FormatExtensions.cs
- InheritanceContextChangedEventManager.cs
- CodeDelegateCreateExpression.cs
- NameObjectCollectionBase.cs
- NamespaceMapping.cs
- TransactionScope.cs
- DocumentApplicationJournalEntryEventArgs.cs
- WebBrowserPermission.cs
- DataGridViewAccessibleObject.cs
- XmlUrlResolver.cs
- Multiply.cs
- XPathEmptyIterator.cs
- PropertyRecord.cs
- SimpleType.cs
- Predicate.cs
- LateBoundBitmapDecoder.cs