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
- TraceFilter.cs
- XsltException.cs
- ComplusTypeValidator.cs
- UpDownEvent.cs
- SubMenuStyleCollectionEditor.cs
- BitmapImage.cs
- Byte.cs
- OleDbDataReader.cs
- AccessibilityHelperForVista.cs
- DSASignatureDeformatter.cs
- AssemblyUtil.cs
- ExpressionNode.cs
- TextFormatterContext.cs
- PrintDocument.cs
- CreateParams.cs
- SoundPlayer.cs
- XsltArgumentList.cs
- ListComponentEditor.cs
- ParserOptions.cs
- NegationPusher.cs
- TextFormatterHost.cs
- CollaborationHelperFunctions.cs
- SetIndexBinder.cs
- XmlException.cs
- ReadOnlyDictionary.cs
- CurrentChangedEventManager.cs
- Literal.cs
- TextBlock.cs
- SHA384.cs
- ParamArrayAttribute.cs
- Camera.cs
- XhtmlConformanceSection.cs
- QilIterator.cs
- BitmapData.cs
- NegatedConstant.cs
- SqlDataSourceDesigner.cs
- SqlCacheDependencyDatabase.cs
- BeginStoryboard.cs
- ProfileParameter.cs
- Int64Animation.cs
- KeyValuePairs.cs
- ConfigurationLocationCollection.cs
- DataTrigger.cs
- SafeRightsManagementSessionHandle.cs
- EnumerableRowCollectionExtensions.cs
- SpoolingTaskBase.cs
- MediaEntryAttribute.cs
- HMAC.cs
- IISUnsafeMethods.cs
- InvalidEnumArgumentException.cs
- ContractMapping.cs
- MetadataSource.cs
- EventBuilder.cs
- SoapElementAttribute.cs
- QueryStack.cs
- SqlTypeSystemProvider.cs
- SimpleTextLine.cs
- _OSSOCK.cs
- QilUnary.cs
- WebControl.cs
- BitmapEffectInputConnector.cs
- LookupNode.cs
- TextServicesProperty.cs
- Font.cs
- ValidationEventArgs.cs
- ObjectFullSpanRewriter.cs
- ToolStripItemTextRenderEventArgs.cs
- MessageDesigner.cs
- SystemUnicastIPAddressInformation.cs
- Parameter.cs
- WindowsGraphicsWrapper.cs
- wgx_exports.cs
- ComplexBindingPropertiesAttribute.cs
- Sql8ExpressionRewriter.cs
- WarningException.cs
- _SSPISessionCache.cs
- EncryptedType.cs
- ThemeDirectoryCompiler.cs
- COM2Enum.cs
- StreamInfo.cs
- EdmItemCollection.cs
- ArgumentOutOfRangeException.cs
- ObjectDataSourceEventArgs.cs
- HtmlControlPersistable.cs
- FocusWithinProperty.cs
- MessageBodyDescription.cs
- SafeUserTokenHandle.cs
- ProxyAttribute.cs
- StickyNote.cs
- ListViewTableCell.cs
- XPathNodeInfoAtom.cs
- DivideByZeroException.cs
- CodeGeneratorOptions.cs
- ConnectionPoolManager.cs
- Msec.cs
- FormDocumentDesigner.cs
- StringReader.cs
- EnumValAlphaComparer.cs
- FtpWebRequest.cs
- TextBreakpoint.cs