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
- WebPartCollection.cs
- RemoteWebConfigurationHostStream.cs
- CodeTypeDeclaration.cs
- OutputCacheSettings.cs
- DataControlImageButton.cs
- OrderByQueryOptionExpression.cs
- SelectedCellsChangedEventArgs.cs
- AliasedSlot.cs
- GridErrorDlg.cs
- PathSegmentCollection.cs
- Screen.cs
- ComplexBindingPropertiesAttribute.cs
- AttributeUsageAttribute.cs
- Tokenizer.cs
- HttpApplicationStateWrapper.cs
- SkewTransform.cs
- WebPartDeleteVerb.cs
- DefinitionUpdate.cs
- WebPartUtil.cs
- FontFamily.cs
- BuilderPropertyEntry.cs
- Calendar.cs
- sqlstateclientmanager.cs
- UserNamePasswordValidator.cs
- MimeTypePropertyAttribute.cs
- RouteValueExpressionBuilder.cs
- ActiveXMessageFormatter.cs
- MasterPage.cs
- UIPropertyMetadata.cs
- SqlDependencyListener.cs
- ScrollProviderWrapper.cs
- CapabilitiesPattern.cs
- ActivityPreviewDesigner.cs
- _FixedSizeReader.cs
- StrokeRenderer.cs
- InstancePersistenceContext.cs
- DbConnectionInternal.cs
- WindowsStatic.cs
- DataObjectAttribute.cs
- CustomErrorCollection.cs
- NativeMethods.cs
- CodeCommentStatement.cs
- CustomGrammar.cs
- XPathBuilder.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EnvironmentPermission.cs
- CustomError.cs
- FileUpload.cs
- WebEvents.cs
- BuildDependencySet.cs
- StructuredType.cs
- SpeechEvent.cs
- SwitchAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- System.Data_BID.cs
- DocumentViewerBaseAutomationPeer.cs
- FormViewPageEventArgs.cs
- RectAnimation.cs
- DebugHandleTracker.cs
- FlowDocumentPaginator.cs
- ExtendedProperty.cs
- DataConnectionHelper.cs
- ReferentialConstraint.cs
- ExecutedRoutedEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- RegexCapture.cs
- XmlLanguageConverter.cs
- MenuRenderer.cs
- WebResponse.cs
- SqlResolver.cs
- DiagnosticsConfiguration.cs
- DataGridCheckBoxColumn.cs
- SymLanguageType.cs
- ScrollChrome.cs
- OracleEncoding.cs
- TextRangeProviderWrapper.cs
- UIElement.cs
- FunctionDescription.cs
- SchemaEntity.cs
- TemplateBuilder.cs
- FontDifferentiator.cs
- OracleTransaction.cs
- ApplicationActivator.cs
- KernelTypeValidation.cs
- HttpHandlerActionCollection.cs
- RegexCompilationInfo.cs
- GeometryGroup.cs
- ImportCatalogPart.cs
- Header.cs
- ElementProxy.cs
- CountdownEvent.cs
- Connector.cs
- IntegerValidatorAttribute.cs
- AtomContentProperty.cs
- ObjectParameterCollection.cs
- ParameterBuilder.cs
- WhitespaceRuleReader.cs
- SiteMap.cs
- WebException.cs
- ToolStripSeparator.cs