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 / XmlRootAttribute.cs / 1 / XmlRootAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)] public class XmlRootAttribute : System.Attribute { string elementName; string ns; string dataType; bool nullable = true; bool nullableSpecified; ///[To be supplied.] ////// /// public XmlRootAttribute() { } ///[To be supplied.] ////// /// public XmlRootAttribute(string elementName) { this.elementName = elementName; } ///[To be supplied.] ////// /// public string ElementName { get { return elementName == null ? string.Empty : elementName; } set { elementName = value; } } ///[To be supplied.] ////// /// public string Namespace { get { return ns; } set { ns = value; } } ///[To be supplied.] ////// /// public string DataType { get { return dataType == null ? string.Empty : dataType; } set { dataType = value; } } ///[To be supplied.] ////// /// public bool IsNullable { get { return nullable; } set { nullable = value; nullableSpecified = true; } } internal bool IsNullableSpecified { get { return nullableSpecified; } } internal string Key { get { return (ns == null ? String.Empty : ns) + ":" + ElementName + ":" + nullable.ToString(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)] public class XmlRootAttribute : System.Attribute { string elementName; string ns; string dataType; bool nullable = true; bool nullableSpecified; ///[To be supplied.] ////// /// public XmlRootAttribute() { } ///[To be supplied.] ////// /// public XmlRootAttribute(string elementName) { this.elementName = elementName; } ///[To be supplied.] ////// /// public string ElementName { get { return elementName == null ? string.Empty : elementName; } set { elementName = value; } } ///[To be supplied.] ////// /// public string Namespace { get { return ns; } set { ns = value; } } ///[To be supplied.] ////// /// public string DataType { get { return dataType == null ? string.Empty : dataType; } set { dataType = value; } } ///[To be supplied.] ////// /// public bool IsNullable { get { return nullable; } set { nullable = value; nullableSpecified = true; } } internal bool IsNullableSpecified { get { return nullableSpecified; } } internal string Key { get { return (ns == null ? String.Empty : ns) + ":" + ElementName + ":" + nullable.ToString(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int32KeyFrameCollection.cs
- StringDictionaryCodeDomSerializer.cs
- Privilege.cs
- ObjectContext.cs
- DataServiceQueryException.cs
- SecurityTokenRequirement.cs
- COM2PropertyBuilderUITypeEditor.cs
- Highlights.cs
- RuntimeConfigLKG.cs
- ResXResourceSet.cs
- ToolboxBitmapAttribute.cs
- RegexCompiler.cs
- AssertSection.cs
- SelectedGridItemChangedEvent.cs
- SerializationInfoEnumerator.cs
- BitmapScalingModeValidation.cs
- SingleTagSectionHandler.cs
- OracleBFile.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- GridViewRowPresenterBase.cs
- EntityExpressionVisitor.cs
- QueryOptionExpression.cs
- SmuggledIUnknown.cs
- RootAction.cs
- StringDictionaryCodeDomSerializer.cs
- SqlClientWrapperSmiStream.cs
- DrawingCollection.cs
- XmlSchemaProviderAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- MessageQueue.cs
- WindowVisualStateTracker.cs
- TableStyle.cs
- CodeFieldReferenceExpression.cs
- SingleKeyFrameCollection.cs
- HostingPreferredMapPath.cs
- UserControlBuildProvider.cs
- IConvertible.cs
- DbgUtil.cs
- PropertyConverter.cs
- HexParser.cs
- OptimisticConcurrencyException.cs
- ToolStripPanelCell.cs
- ValueTypeFixupInfo.cs
- SelectionPatternIdentifiers.cs
- CLSCompliantAttribute.cs
- StringExpressionSet.cs
- XPathDocumentIterator.cs
- Choices.cs
- ContextMenu.cs
- ParserContext.cs
- Point3DValueSerializer.cs
- ContextMenuService.cs
- PagesSection.cs
- DescendantBaseQuery.cs
- NotFiniteNumberException.cs
- ToolBarTray.cs
- ServicesUtilities.cs
- InputMethod.cs
- SmiEventStream.cs
- _CookieModule.cs
- CultureTable.cs
- NavigationProgressEventArgs.cs
- ResetableIterator.cs
- EventData.cs
- WorkflowDesignerColors.cs
- DataGridViewCellStyle.cs
- MemoryResponseElement.cs
- FlowLayout.cs
- Socket.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SqlCacheDependency.cs
- CancelEventArgs.cs
- CLSCompliantAttribute.cs
- WmlObjectListAdapter.cs
- XmlSchema.cs
- Application.cs
- VirtualPathUtility.cs
- EncodedStreamFactory.cs
- WindowsProgressbar.cs
- ContentFilePart.cs
- PathStreamGeometryContext.cs
- WasHttpModulesInstallComponent.cs
- ScopeCollection.cs
- Binding.cs
- DocumentViewerBaseAutomationPeer.cs
- TcpHostedTransportConfiguration.cs
- ActivityWithResultValueSerializer.cs
- ProtectedProviderSettings.cs
- EqualityComparer.cs
- AnnotationResource.cs
- CompilerGeneratedAttribute.cs
- FontUnitConverter.cs
- EntityContainerRelationshipSet.cs
- ToolStripRenderEventArgs.cs
- RowUpdatingEventArgs.cs
- SslStreamSecurityUpgradeProvider.cs
- ScrollProviderWrapper.cs
- PeerNameRegistration.cs
- WeakReferenceKey.cs
- Simplifier.cs