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
- DataGridViewRow.cs
- GradientStopCollection.cs
- AutoGeneratedFieldProperties.cs
- QuaternionAnimation.cs
- MutexSecurity.cs
- SecondaryViewProvider.cs
- WebPartManagerInternals.cs
- SimplePropertyEntry.cs
- OleDbRowUpdatedEvent.cs
- VisualTreeUtils.cs
- OleDbSchemaGuid.cs
- MethodInfo.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- COM2PropertyPageUITypeConverter.cs
- DispatcherHooks.cs
- DomainUpDown.cs
- HtmlObjectListAdapter.cs
- XmlWriterDelegator.cs
- SettingsAttributes.cs
- XmlSerializationWriter.cs
- InProcStateClientManager.cs
- RulePatternOps.cs
- uribuilder.cs
- AliasGenerator.cs
- Compress.cs
- AnnotationResourceCollection.cs
- SerializationObjectManager.cs
- LinearQuaternionKeyFrame.cs
- TimeSpanConverter.cs
- DependencyObjectProvider.cs
- UTF8Encoding.cs
- DropDownButton.cs
- PagesSection.cs
- WebServiceResponseDesigner.cs
- StringArrayConverter.cs
- NullReferenceException.cs
- Int32CAMarshaler.cs
- WeakHashtable.cs
- TextStore.cs
- WsdlHelpGeneratorElement.cs
- InertiaTranslationBehavior.cs
- AssemblyInfo.cs
- MemberHolder.cs
- LinearKeyFrames.cs
- WindowsListViewItemStartMenu.cs
- PrimitiveCodeDomSerializer.cs
- PriorityChain.cs
- EntitySqlQueryState.cs
- RPIdentityRequirement.cs
- JsonFormatReaderGenerator.cs
- PropertyTab.cs
- ProvidePropertyAttribute.cs
- ProxyWebPart.cs
- CssTextWriter.cs
- EventManager.cs
- OleDbConnectionInternal.cs
- ToggleButtonAutomationPeer.cs
- DragDeltaEventArgs.cs
- WebPartTransformerCollection.cs
- SourceItem.cs
- filewebresponse.cs
- hresults.cs
- EventDrivenDesigner.cs
- XpsResourcePolicy.cs
- ApplicationInfo.cs
- ConstrainedDataObject.cs
- RSACryptoServiceProvider.cs
- DictionaryManager.cs
- ConstrainedDataObject.cs
- OLEDB_Util.cs
- StylusButtonCollection.cs
- EmptyControlCollection.cs
- TypeToken.cs
- Instrumentation.cs
- BufferBuilder.cs
- SmiConnection.cs
- SqlDataSourceView.cs
- ProxyAttribute.cs
- DynamicRenderer.cs
- GroupItemAutomationPeer.cs
- AutoGeneratedFieldProperties.cs
- ConvertEvent.cs
- CachedCompositeFamily.cs
- RecommendedAsConfigurableAttribute.cs
- FormView.cs
- DrawListViewItemEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- RawStylusActions.cs
- CodeSnippetExpression.cs
- BuilderElements.cs
- BaseAddressElementCollection.cs
- DBCommand.cs
- Regex.cs
- ReadOnlyCollectionBase.cs
- InfoCardConstants.cs
- CodeSubDirectory.cs
- OperationContractGenerationContext.cs
- DbException.cs
- HttpRuntimeSection.cs
- FontUnitConverter.cs