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
- SizeConverter.cs
- ScrollBarAutomationPeer.cs
- WebPartHeaderCloseVerb.cs
- DataGridTable.cs
- ImageIndexConverter.cs
- InternalBase.cs
- RoleServiceManager.cs
- PixelFormats.cs
- ProxyElement.cs
- TypeNameParser.cs
- ViewValidator.cs
- SectionRecord.cs
- InvokePatternIdentifiers.cs
- IArgumentProvider.cs
- StrokeNodeOperations.cs
- Crypto.cs
- XmlSchemaAttribute.cs
- InputProviderSite.cs
- HierarchicalDataBoundControl.cs
- CodeStatement.cs
- DoubleStorage.cs
- Base64Encoder.cs
- PanelStyle.cs
- FunctionNode.cs
- InternalsVisibleToAttribute.cs
- CursorEditor.cs
- AdornerPresentationContext.cs
- InstanceKeyCollisionException.cs
- MediaCommands.cs
- Vector3DConverter.cs
- BamlBinaryReader.cs
- AmbientValueAttribute.cs
- ProxyGenerationError.cs
- Formatter.cs
- RegexNode.cs
- XmlSchemaCompilationSettings.cs
- JsonQNameDataContract.cs
- ClonableStack.cs
- ItemContainerPattern.cs
- ToolStripDropDownButton.cs
- GPPOINT.cs
- KnownBoxes.cs
- OrderedDictionaryStateHelper.cs
- DataGridViewCellFormattingEventArgs.cs
- BitmapEffectInput.cs
- RequestCachePolicyConverter.cs
- AtomEntry.cs
- CurrentChangedEventManager.cs
- webproxy.cs
- DataRelationPropertyDescriptor.cs
- ExpanderAutomationPeer.cs
- KeyValuePair.cs
- KeyPullup.cs
- GridLengthConverter.cs
- XmlSortKeyAccumulator.cs
- smtppermission.cs
- ExceptionUtility.cs
- BinaryFormatterWriter.cs
- RefreshEventArgs.cs
- XPathMessageFilterElementComparer.cs
- PolyBezierSegment.cs
- Vector3D.cs
- WindowShowOrOpenTracker.cs
- TableCell.cs
- PropertyValueUIItem.cs
- CodeGotoStatement.cs
- WebSysDescriptionAttribute.cs
- ReachDocumentReferenceSerializer.cs
- GridViewItemAutomationPeer.cs
- MonitorWrapper.cs
- NativeObjectSecurity.cs
- DataGrid.cs
- ComponentTray.cs
- MouseCaptureWithinProperty.cs
- ItemsControlAutomationPeer.cs
- AutomationEventArgs.cs
- ProcessingInstructionAction.cs
- PolyBezierSegmentFigureLogic.cs
- DbMetaDataCollectionNames.cs
- BindingCollection.cs
- XPathDocumentIterator.cs
- Triplet.cs
- SecurityDocument.cs
- TargetPerspective.cs
- ClientTargetCollection.cs
- ApplicationId.cs
- RenderDataDrawingContext.cs
- RSAProtectedConfigurationProvider.cs
- ADMembershipProvider.cs
- DiscoveryDocument.cs
- WebPartDescriptionCollection.cs
- Assembly.cs
- ExpressionBuilderCollection.cs
- Light.cs
- SafeNativeMethods.cs
- SqlFormatter.cs
- Models.cs
- FontNamesConverter.cs
- GroupQuery.cs
- BlurBitmapEffect.cs