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
- DebugManager.cs
- RMEnrollmentPage2.cs
- RemoteHelper.cs
- XamlBrushSerializer.cs
- FileLogRecord.cs
- DataGridRowDetailsEventArgs.cs
- ColorInterpolationModeValidation.cs
- ProgressBarBrushConverter.cs
- TopClause.cs
- Tracking.cs
- ZipPackagePart.cs
- ResourceManagerWrapper.cs
- LOSFormatter.cs
- ManagedIStream.cs
- RemoteX509AsymmetricSecurityKey.cs
- QilName.cs
- FamilyMapCollection.cs
- WsiProfilesElement.cs
- M3DUtil.cs
- LicFileLicenseProvider.cs
- InstanceValue.cs
- StatusStrip.cs
- ItemCheckedEvent.cs
- WebFaultClientMessageInspector.cs
- Substitution.cs
- DrawingImage.cs
- StyleSelector.cs
- TextBox.cs
- Tablet.cs
- odbcmetadatacolumnnames.cs
- FrameworkContentElement.cs
- OracleColumn.cs
- TimeEnumHelper.cs
- SeverityFilter.cs
- EnvelopedPkcs7.cs
- GridSplitterAutomationPeer.cs
- UrlParameterWriter.cs
- CharUnicodeInfo.cs
- ProtocolViolationException.cs
- ReceiveActivity.cs
- WriteableBitmap.cs
- SqlFunctionAttribute.cs
- FieldNameLookup.cs
- _ProxyChain.cs
- XPathDocumentNavigator.cs
- MobileControlDesigner.cs
- CodeGotoStatement.cs
- PeerMaintainer.cs
- ServiceContractAttribute.cs
- Point3DValueSerializer.cs
- SigningCredentials.cs
- DocumentViewerHelper.cs
- XmlArrayItemAttribute.cs
- FixedHyperLink.cs
- SQLBytesStorage.cs
- ItemList.cs
- BamlLocalizableResource.cs
- MachineSettingsSection.cs
- ButtonChrome.cs
- PathFigureCollectionConverter.cs
- DataReaderContainer.cs
- WebPartConnectionsEventArgs.cs
- TypedOperationInfo.cs
- RadioButtonPopupAdapter.cs
- BitConverter.cs
- DefaultPropertyAttribute.cs
- FusionWrap.cs
- PackagingUtilities.cs
- ResourceAttributes.cs
- ErrorHandler.cs
- ClaimTypeElement.cs
- Normalizer.cs
- EmptyCollection.cs
- ListViewDeletedEventArgs.cs
- HttpCachePolicy.cs
- BuildManager.cs
- ResourcesGenerator.cs
- MimePart.cs
- MessageSecurityVersion.cs
- PeerApplicationLaunchInfo.cs
- DesignTimeVisibleAttribute.cs
- BezierSegment.cs
- ProfileServiceManager.cs
- CacheOutputQuery.cs
- ListChunk.cs
- XmlC14NWriter.cs
- TdsParserStaticMethods.cs
- COM2IDispatchConverter.cs
- RadioButton.cs
- AccessDataSource.cs
- ObjectAnimationUsingKeyFrames.cs
- StringConverter.cs
- ViewGenerator.cs
- JavaScriptSerializer.cs
- ParameterModifier.cs
- SingleStorage.cs
- WorkflowInstanceContextProvider.cs
- BufferedWebEventProvider.cs
- WizardSideBarListControlItem.cs
- CodeArrayCreateExpression.cs