Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XsltFunctions.cs
- IgnoreSection.cs
- UpdateRecord.cs
- MouseActionConverter.cs
- NonceToken.cs
- DbConnectionOptions.cs
- XmlDeclaration.cs
- StorageFunctionMapping.cs
- StorageConditionPropertyMapping.cs
- AttributeEmitter.cs
- XmlSchemaFacet.cs
- XPathArrayIterator.cs
- Exception.cs
- ThousandthOfEmRealPoints.cs
- ManipulationStartingEventArgs.cs
- XmlSchemaObjectTable.cs
- RegexWorker.cs
- smtppermission.cs
- SizeAnimationUsingKeyFrames.cs
- UpdateProgress.cs
- Timer.cs
- RecordBuilder.cs
- IndependentAnimationStorage.cs
- ExpanderAutomationPeer.cs
- WindowPattern.cs
- Matrix3DValueSerializer.cs
- Parameter.cs
- Point4D.cs
- VerticalAlignConverter.cs
- SafeNativeMethodsCLR.cs
- SuspendDesigner.cs
- ReaderWriterLock.cs
- Crc32Helper.cs
- WmfPlaceableFileHeader.cs
- ArraySortHelper.cs
- AnnotationComponentChooser.cs
- ItemCollection.cs
- precedingsibling.cs
- Variant.cs
- DataControlFieldHeaderCell.cs
- Assert.cs
- StylusPlugin.cs
- BindingContext.cs
- DbExpressionVisitor.cs
- UnsafeNativeMethods.cs
- SystemDiagnosticsSection.cs
- FileVersionInfo.cs
- ObjectConverter.cs
- XamlSerializerUtil.cs
- ConnectionString.cs
- CounterCreationDataCollection.cs
- HtmlUtf8RawTextWriter.cs
- HttpServerUtilityWrapper.cs
- TextFormatter.cs
- SurrogateSelector.cs
- GroupBoxRenderer.cs
- DataGridViewCellCancelEventArgs.cs
- XmlSchemaAttribute.cs
- AccessibleObject.cs
- BindingOperations.cs
- WebServiceHostFactory.cs
- SecurityDocument.cs
- MaterializeFromAtom.cs
- CodeObjectCreateExpression.cs
- SourceSwitch.cs
- ScopeElementCollection.cs
- Assert.cs
- SchemaMapping.cs
- ClientScriptItem.cs
- WebResourceAttribute.cs
- MissingManifestResourceException.cs
- ToolStripDropTargetManager.cs
- TaskFileService.cs
- TypeConverterHelper.cs
- WebPartDisplayModeCollection.cs
- ClipboardProcessor.cs
- TcpChannelFactory.cs
- Int64Storage.cs
- QuaternionRotation3D.cs
- PhotoPrintingIntent.cs
- FrameDimension.cs
- FieldAccessException.cs
- TabItemAutomationPeer.cs
- PersistenceTask.cs
- MediaTimeline.cs
- SafeCryptContextHandle.cs
- PlaceHolder.cs
- WebAdminConfigurationHelper.cs
- Thumb.cs
- XmlHelper.cs
- RoleGroup.cs
- SafeSecurityHandles.cs
- WaitHandle.cs
- MetadataArtifactLoaderFile.cs
- ConfigurationLockCollection.cs
- Crc32.cs
- DecimalConverter.cs
- ErrorCodes.cs
- HierarchicalDataSourceControl.cs
- HttpConfigurationSystem.cs