Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAnyElementAttribute.cs / 1305376 / 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
- FaultContractAttribute.cs
- RoutedEventConverter.cs
- FrameworkEventSource.cs
- StyleXamlParser.cs
- EntitySqlQueryCacheEntry.cs
- ClosableStream.cs
- BulletDecorator.cs
- VariableAction.cs
- ItemContainerGenerator.cs
- DataGridViewTopLeftHeaderCell.cs
- Size.cs
- ListChangedEventArgs.cs
- FileAuthorizationModule.cs
- DockPanel.cs
- shaper.cs
- NestPullup.cs
- SplitContainer.cs
- SpecularMaterial.cs
- RuntimeArgumentHandle.cs
- SchemaConstraints.cs
- StorageScalarPropertyMapping.cs
- StringWriter.cs
- RequestQueue.cs
- Tile.cs
- NativeMethods.cs
- ComAdminWrapper.cs
- safesecurityhelperavalon.cs
- VirtualizingStackPanel.cs
- CompositeFontParser.cs
- DataControlButton.cs
- datacache.cs
- HttpGetServerProtocol.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- XamlSerializerUtil.cs
- ActivityMarkupSerializationProvider.cs
- DiscoveryViaBehavior.cs
- ResourcePermissionBaseEntry.cs
- WebEncodingValidatorAttribute.cs
- AssemblyBuilder.cs
- ConvertTextFrag.cs
- ResourceSetExpression.cs
- SqlCachedBuffer.cs
- CapabilitiesRule.cs
- AnonymousIdentificationSection.cs
- RequestSecurityTokenResponse.cs
- RelationshipWrapper.cs
- DockProviderWrapper.cs
- CfgParser.cs
- StrokeCollection.cs
- ActiveDocumentEvent.cs
- EasingKeyFrames.cs
- AutomationElement.cs
- _BaseOverlappedAsyncResult.cs
- HttpCacheParams.cs
- ButtonStandardAdapter.cs
- OdbcConnectionFactory.cs
- PackagingUtilities.cs
- HttpListenerRequest.cs
- Int16AnimationUsingKeyFrames.cs
- DbConnectionHelper.cs
- DesignerActionPropertyItem.cs
- WebPartDisplayModeCollection.cs
- cookiecontainer.cs
- TemplateBamlTreeBuilder.cs
- UnknownWrapper.cs
- XmlSchemaObject.cs
- FontFamilyConverter.cs
- ContextMenu.cs
- SystemResources.cs
- ReferentialConstraint.cs
- ApplicationInterop.cs
- GridEntry.cs
- MenuItem.cs
- CheckBoxAutomationPeer.cs
- DBCommand.cs
- TailCallAnalyzer.cs
- HealthMonitoringSectionHelper.cs
- ObjectDataProvider.cs
- XPathBinder.cs
- ReflectionTypeLoadException.cs
- SizeConverter.cs
- DirectionalLight.cs
- QueryContext.cs
- NumericUpDownAcceleration.cs
- PassportAuthenticationModule.cs
- PointCollectionConverter.cs
- EventHandlersStore.cs
- CharKeyFrameCollection.cs
- FileInfo.cs
- DataListComponentEditor.cs
- FilterableAttribute.cs
- ImageField.cs
- ZipPackagePart.cs
- InputLanguageSource.cs
- VersionedStream.cs
- RequestQueryParser.cs
- BitmapVisualManager.cs
- DynamicPhysicalDiscoSearcher.cs
- RedirectionProxy.cs
- SecUtil.cs