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 / XmlAnyElementAttribute.cs / 1 / XmlAnyElementAttribute.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=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. //------------------------------------------------------------------------------ //[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=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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StreamProxy.cs
- ThreadExceptionEvent.cs
- RepeatButtonAutomationPeer.cs
- EntityContainerEmitter.cs
- RowType.cs
- SiteOfOriginPart.cs
- ListViewCancelEventArgs.cs
- RefreshEventArgs.cs
- ConfigViewGenerator.cs
- cookie.cs
- ParameterModifier.cs
- SmtpNetworkElement.cs
- TcpSocketManager.cs
- CompilationUtil.cs
- TextTreeTextElementNode.cs
- ThreadInterruptedException.cs
- CodeDomSerializer.cs
- AuthenticationServiceManager.cs
- HwndMouseInputProvider.cs
- DataTableMappingCollection.cs
- SequentialActivityDesigner.cs
- MemberPath.cs
- MSG.cs
- DataGridTextBox.cs
- CategoryEditor.cs
- XmlDigitalSignatureProcessor.cs
- XmlChildEnumerator.cs
- HandleTable.cs
- MSAAWinEventWrap.cs
- UIElement3D.cs
- DoubleLinkList.cs
- Tokenizer.cs
- HttpRequestCacheValidator.cs
- IdentityValidationException.cs
- XMLSchema.cs
- SessionStateItemCollection.cs
- UnhandledExceptionEventArgs.cs
- PermissionRequestEvidence.cs
- TypefaceCollection.cs
- LayoutEditorPart.cs
- ConsoleCancelEventArgs.cs
- WindowsScrollBar.cs
- XamlSerializer.cs
- XmlIncludeAttribute.cs
- ParseNumbers.cs
- EmptyControlCollection.cs
- ContentPlaceHolder.cs
- JavaScriptObjectDeserializer.cs
- PageAdapter.cs
- CodeStatementCollection.cs
- ArcSegment.cs
- CachingHintValidation.cs
- Section.cs
- InvokePatternIdentifiers.cs
- SoapSchemaImporter.cs
- LoginName.cs
- ContainerAction.cs
- ArgumentDesigner.xaml.cs
- uribuilder.cs
- Vector3DAnimation.cs
- GridViewRowPresenterBase.cs
- SizeF.cs
- StreamProxy.cs
- _ConnectOverlappedAsyncResult.cs
- ExeConfigurationFileMap.cs
- SingleAnimationUsingKeyFrames.cs
- FlowDocument.cs
- InvokeMethod.cs
- CapabilitiesRule.cs
- TCEAdapterGenerator.cs
- TableChangeProcessor.cs
- KeyValuePair.cs
- WindowsFormsSectionHandler.cs
- SafeNativeMethods.cs
- SwitchElementsCollection.cs
- MediaElement.cs
- TreeNodeConverter.cs
- xmlfixedPageInfo.cs
- Quaternion.cs
- GraphicsContext.cs
- MDIClient.cs
- ObjectConverter.cs
- localization.cs
- GridItem.cs
- DelegatingTypeDescriptionProvider.cs
- BinaryOperationBinder.cs
- IdentityHolder.cs
- SplineKeyFrames.cs
- TextBoxBase.cs
- Domain.cs
- PropertyChangingEventArgs.cs
- ViewPort3D.cs
- SchemaManager.cs
- ValidationPropertyAttribute.cs
- ContentFileHelper.cs
- InternalSafeNativeMethods.cs
- CompositeCollectionView.cs
- InstallerTypeAttribute.cs
- DataGridViewCellFormattingEventArgs.cs
- QueryResponse.cs