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
- RangeBaseAutomationPeer.cs
- PackageFilter.cs
- ClassValidator.cs
- SafeHandles.cs
- TraceXPathNavigator.cs
- CacheEntry.cs
- SynchronizedPool.cs
- CodeTypeMemberCollection.cs
- DataGridViewAdvancedBorderStyle.cs
- SocketElement.cs
- SqlFunctionAttribute.cs
- ResourceExpression.cs
- KeyInstance.cs
- ExpressionWriter.cs
- WriteableBitmap.cs
- ListChangedEventArgs.cs
- FrameAutomationPeer.cs
- LogReserveAndAppendState.cs
- SqlCommandBuilder.cs
- RsaKeyIdentifierClause.cs
- MemberNameValidator.cs
- FormsAuthenticationModule.cs
- CalendarAutoFormatDialog.cs
- RelationshipSet.cs
- XmlCodeExporter.cs
- ServiceDiscoveryElement.cs
- LabelLiteral.cs
- PointIndependentAnimationStorage.cs
- ContourSegment.cs
- KeyEventArgs.cs
- HostingEnvironmentException.cs
- BufferedStream.cs
- ErrorBehavior.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TranslateTransform.cs
- DispatchChannelSink.cs
- SectionRecord.cs
- ClassHandlersStore.cs
- EntityDataSourceStatementEditor.cs
- contentDescriptor.cs
- VectorAnimationBase.cs
- LinkAreaEditor.cs
- CustomAttributeFormatException.cs
- SpinWait.cs
- JoinCqlBlock.cs
- HttpCacheParams.cs
- MatrixStack.cs
- SoapMessage.cs
- DataSourceControlBuilder.cs
- XsltOutput.cs
- WizardPanelChangingEventArgs.cs
- ItemCollection.cs
- ConfigurationErrorsException.cs
- ClientSettingsStore.cs
- Select.cs
- XmlSchemaComplexContentRestriction.cs
- InstallerTypeAttribute.cs
- TemplatedWizardStep.cs
- XmlILTrace.cs
- ListSourceHelper.cs
- StandardCommandToolStripMenuItem.cs
- AutomationTextAttribute.cs
- COM2ExtendedBrowsingHandler.cs
- FirstMatchCodeGroup.cs
- ClientSponsor.cs
- ColorTransformHelper.cs
- MultiBinding.cs
- TraceData.cs
- ExtensionWindow.cs
- TraceHandlerErrorFormatter.cs
- AnchoredBlock.cs
- PeerCustomResolverElement.cs
- FlatButtonAppearance.cs
- ConditionalDesigner.cs
- HierarchicalDataBoundControlAdapter.cs
- WebControlAdapter.cs
- PnrpPermission.cs
- InputMethodStateChangeEventArgs.cs
- AddInProcess.cs
- CodeMemberField.cs
- Cursors.cs
- OpenFileDialog.cs
- ReadOnlyTernaryTree.cs
- DocumentXPathNavigator.cs
- ColumnReorderedEventArgs.cs
- TextServicesDisplayAttribute.cs
- MethodCallConverter.cs
- Control.cs
- ObjectFullSpanRewriter.cs
- DetailsViewCommandEventArgs.cs
- StrokeFIndices.cs
- IPEndPoint.cs
- AnnotationStore.cs
- GlyphInfoList.cs
- URL.cs
- SettingsPropertyValue.cs
- SubpageParaClient.cs
- FormViewPagerRow.cs
- ModelPropertyImpl.cs
- SqlPersonalizationProvider.cs