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
- HtmlShim.cs
- IconBitmapDecoder.cs
- VoiceInfo.cs
- ContentPropertyAttribute.cs
- EdmFunctionAttribute.cs
- ListParagraph.cs
- Decorator.cs
- HostedBindingBehavior.cs
- RuleProcessor.cs
- NotificationContext.cs
- TypeConverterAttribute.cs
- RelatedView.cs
- Padding.cs
- StringReader.cs
- ClientApiGenerator.cs
- EdmProviderManifest.cs
- WindowCollection.cs
- MultiAsyncResult.cs
- XsltInput.cs
- DrawingAttributes.cs
- OleDbError.cs
- RelOps.cs
- WindowsListViewItemCheckBox.cs
- XPathChildIterator.cs
- OleDbCommandBuilder.cs
- OutArgument.cs
- TriggerActionCollection.cs
- StringHandle.cs
- TimeSpanStorage.cs
- LayoutUtils.cs
- ToolStripRenderer.cs
- WebPart.cs
- SecuritySessionFilter.cs
- ModulesEntry.cs
- GridSplitter.cs
- TemplateField.cs
- CodeMethodReturnStatement.cs
- TouchesOverProperty.cs
- CodeTryCatchFinallyStatement.cs
- ParentQuery.cs
- AppModelKnownContentFactory.cs
- ObfuscationAttribute.cs
- HttpConfigurationSystem.cs
- ButtonBaseDesigner.cs
- DataGridColumnCollection.cs
- CodeValidator.cs
- _ChunkParse.cs
- ResetableIterator.cs
- Selector.cs
- Main.cs
- NativeMethods.cs
- InvalidFilterCriteriaException.cs
- DetailsViewInsertEventArgs.cs
- SQLInt32.cs
- DrawingGroup.cs
- TargetException.cs
- ViewKeyConstraint.cs
- MessageSmuggler.cs
- MarshalByRefObject.cs
- SqlMethods.cs
- EntityClientCacheEntry.cs
- PixelFormatConverter.cs
- DbExpressionRules.cs
- WebPartManagerDesigner.cs
- XsltConvert.cs
- DataBindEngine.cs
- XmlDataSourceView.cs
- HealthMonitoringSectionHelper.cs
- InvokeGenerator.cs
- HandledMouseEvent.cs
- SqlWorkflowPersistenceService.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- SamlAuthorizationDecisionStatement.cs
- AbstractExpressions.cs
- InstanceCreationEditor.cs
- JapaneseLunisolarCalendar.cs
- JournalNavigationScope.cs
- TextDataBindingHandler.cs
- RoutingChannelExtension.cs
- IteratorFilter.cs
- Floater.cs
- SqlDataSourceCommandEventArgs.cs
- EntityContainerEmitter.cs
- PrintController.cs
- TextContainerChangedEventArgs.cs
- CodeNamespace.cs
- UnmanagedHandle.cs
- HtmlInputButton.cs
- DataServiceHostWrapper.cs
- CommandID.cs
- Ops.cs
- NameNode.cs
- QilReference.cs
- ViewManager.cs
- PropVariant.cs
- XmlHelper.cs
- GlyphRunDrawing.cs
- BaseTemplateBuildProvider.cs
- DataServiceQueryContinuation.cs
- WorkflowInlining.cs