Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CriticalFinalizerObject.cs
- WebSysDescriptionAttribute.cs
- DomainUpDown.cs
- RawStylusInputCustomData.cs
- SoapHttpTransportImporter.cs
- RowToParametersTransformer.cs
- EntitySqlQueryBuilder.cs
- ImpersonateTokenRef.cs
- SortQuery.cs
- ParamArrayAttribute.cs
- NativeMethods.cs
- SiteMapPath.cs
- UriTemplateCompoundPathSegment.cs
- COAUTHINFO.cs
- GeneralTransform3DTo2D.cs
- BmpBitmapDecoder.cs
- Light.cs
- TextParaLineResult.cs
- ValueTable.cs
- StringFreezingAttribute.cs
- DocumentPageTextView.cs
- DataGridViewCellParsingEventArgs.cs
- IxmlLineInfo.cs
- ProxyWebPartManager.cs
- EntityTemplateFactory.cs
- SHA512.cs
- MouseWheelEventArgs.cs
- baseaxisquery.cs
- Vector3dCollection.cs
- SmiTypedGetterSetter.cs
- ImageField.cs
- TypeUtil.cs
- AssociationSetMetadata.cs
- EntitySetDataBindingList.cs
- IncrementalCompileAnalyzer.cs
- SymbolDocumentGenerator.cs
- ErrorProvider.cs
- WindowsTokenRoleProvider.cs
- Invariant.cs
- GraphicsPath.cs
- XmlCharCheckingWriter.cs
- ObjectStorage.cs
- ListViewGroup.cs
- SqlClientWrapperSmiStreamChars.cs
- DBSqlParserColumn.cs
- SQLDecimalStorage.cs
- JsonEnumDataContract.cs
- CmsInterop.cs
- ApplicationServiceHelper.cs
- LeaseManager.cs
- DragEventArgs.cs
- LinkClickEvent.cs
- SplayTreeNode.cs
- RepeaterItemEventArgs.cs
- Int64Converter.cs
- RoleBoolean.cs
- SecurityContextSecurityTokenAuthenticator.cs
- DataRowExtensions.cs
- HashAlgorithm.cs
- BitmapSizeOptions.cs
- EntitySqlQueryBuilder.cs
- StylusButtonCollection.cs
- XmlDocumentType.cs
- HealthMonitoringSection.cs
- MultipartContentParser.cs
- CreateCardRequest.cs
- WebColorConverter.cs
- Vector3DCollection.cs
- _TransmitFileOverlappedAsyncResult.cs
- InvokePatternIdentifiers.cs
- COSERVERINFO.cs
- PrimitiveXmlSerializers.cs
- XmlWhitespace.cs
- MenuAutoFormat.cs
- WebServiceErrorEvent.cs
- SplashScreen.cs
- DivideByZeroException.cs
- UpDownBase.cs
- DesignerAttributeInfo.cs
- DataBindEngine.cs
- _SslStream.cs
- BufferedWebEventProvider.cs
- WebPartDeleteVerb.cs
- DurableEnlistmentState.cs
- PropertyReferenceSerializer.cs
- PartitionResolver.cs
- JsonObjectDataContract.cs
- ClosableStream.cs
- SpecialNameAttribute.cs
- LocalClientSecuritySettingsElement.cs
- UITypeEditors.cs
- WebBrowsableAttribute.cs
- ServiceChannelFactory.cs
- Msec.cs
- UpdateRecord.cs
- SQLRoleProvider.cs
- TogglePatternIdentifiers.cs
- Int32Storage.cs
- Executor.cs
- DbProviderConfigurationHandler.cs