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
- DataTableReaderListener.cs
- AppSettingsExpressionBuilder.cs
- BinaryMessageFormatter.cs
- FastPropertyAccessor.cs
- Msec.cs
- VirtualPath.cs
- SQLMoneyStorage.cs
- AsyncContentLoadedEventArgs.cs
- HtmlControlPersistable.cs
- ScrollData.cs
- Debug.cs
- XslTransformFileEditor.cs
- PackageRelationship.cs
- LingerOption.cs
- Path.cs
- SortFieldComparer.cs
- DataTemplate.cs
- TreeViewImageIndexConverter.cs
- HttpPostedFileBase.cs
- LogRecordSequence.cs
- AnnotationHelper.cs
- columnmapfactory.cs
- ManipulationPivot.cs
- FileSystemWatcher.cs
- Keywords.cs
- GridItemProviderWrapper.cs
- ConditionedDesigner.cs
- FrameworkElement.cs
- AudioSignalProblemOccurredEventArgs.cs
- ConfigXmlComment.cs
- ObjectResult.cs
- Hex.cs
- StringValidator.cs
- AnnotationResourceCollection.cs
- DbDataAdapter.cs
- ObjectResult.cs
- OneOfScalarConst.cs
- DuplicateWaitObjectException.cs
- SafeRightsManagementSessionHandle.cs
- ValueTable.cs
- ApplyImportsAction.cs
- SafeNativeMethods.cs
- BinaryObjectInfo.cs
- ContentPlaceHolder.cs
- Point3DKeyFrameCollection.cs
- ConfigurationSchemaErrors.cs
- DtrList.cs
- COM2IDispatchConverter.cs
- SharedHttpTransportManager.cs
- _NestedSingleAsyncResult.cs
- ManagedCodeMarkers.cs
- TrackingDataItemValue.cs
- ControlCollection.cs
- DesignerView.cs
- DefaultClaimSet.cs
- WebBaseEventKeyComparer.cs
- Rfc2898DeriveBytes.cs
- Int32Rect.cs
- AssemblyInfo.cs
- TypeElement.cs
- PositiveTimeSpanValidatorAttribute.cs
- ErrorHandler.cs
- ConnectionStringSettingsCollection.cs
- HyperLinkField.cs
- OleDbStruct.cs
- ProviderIncompatibleException.cs
- CssClassPropertyAttribute.cs
- DesignerTextBoxAdapter.cs
- CollaborationHelperFunctions.cs
- SizeAnimation.cs
- GenericArgumentsUpdater.cs
- IxmlLineInfo.cs
- CompressionTransform.cs
- BinHexEncoder.cs
- IndexerNameAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- SqlMetaData.cs
- ApplicationCommands.cs
- TextReader.cs
- ParallelTimeline.cs
- QilChoice.cs
- dataprotectionpermissionattribute.cs
- Model3D.cs
- OracleConnection.cs
- DataGridViewColumnConverter.cs
- PiiTraceSource.cs
- OptimizedTemplateContentHelper.cs
- Rotation3DAnimationUsingKeyFrames.cs
- SrgsElementList.cs
- Oci.cs
- SqlMetaData.cs
- EllipseGeometry.cs
- X509ScopedServiceCertificateElementCollection.cs
- NotSupportedException.cs
- DataControlFieldCollection.cs
- MouseWheelEventArgs.cs
- OutputCacheSettingsSection.cs
- SelectionUIHandler.cs
- XPathScanner.cs
- MessageHeaderDescriptionCollection.cs