Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ImageListUtils.cs
- AsymmetricSignatureFormatter.cs
- CustomWebEventKey.cs
- SchemaLookupTable.cs
- MenuItemStyle.cs
- WebPartCatalogAddVerb.cs
- PeerToPeerException.cs
- UpdateManifestForBrowserApplication.cs
- CachingHintValidation.cs
- SafeWaitHandle.cs
- ListMarkerLine.cs
- RulePatternOps.cs
- TargetPerspective.cs
- ProfileSettingsCollection.cs
- AssemblyInfo.cs
- HttpVersion.cs
- ProfileParameter.cs
- ValidatingPropertiesEventArgs.cs
- UseLicense.cs
- TextElementCollection.cs
- InsufficientMemoryException.cs
- ChangePassword.cs
- SchemaReference.cs
- DataGridViewHitTestInfo.cs
- FileResponseElement.cs
- TextFindEngine.cs
- OdbcStatementHandle.cs
- DataColumnMapping.cs
- AffineTransform3D.cs
- Transform.cs
- Vector3DAnimationBase.cs
- XmlSchemaAttributeGroupRef.cs
- NameValueConfigurationCollection.cs
- DotExpr.cs
- XmlUtf8RawTextWriter.cs
- _BaseOverlappedAsyncResult.cs
- NavigationService.cs
- ConditionalAttribute.cs
- ActiveDocumentEvent.cs
- ArraySortHelper.cs
- ScrollBarRenderer.cs
- SweepDirectionValidation.cs
- XmlDocumentFragment.cs
- SequenceNumber.cs
- VisualTreeUtils.cs
- FormattedTextSymbols.cs
- OneOfElement.cs
- HostedTransportConfigurationManager.cs
- ArgumentException.cs
- PropertyValueUIItem.cs
- FacetChecker.cs
- MgmtConfigurationRecord.cs
- WebPartMenu.cs
- OleDbRowUpdatingEvent.cs
- ListViewItem.cs
- FileSystemInfo.cs
- MetaModel.cs
- MenuItem.cs
- StringFunctions.cs
- StrokeNodeOperations2.cs
- SocketAddress.cs
- TableAdapterManagerNameHandler.cs
- InternalTypeHelper.cs
- DBCommandBuilder.cs
- FigureHelper.cs
- QueueException.cs
- BinaryWriter.cs
- LightweightCodeGenerator.cs
- XmlNavigatorFilter.cs
- X509Utils.cs
- SafeEventLogWriteHandle.cs
- BamlTreeUpdater.cs
- InternalPermissions.cs
- HashHelpers.cs
- ObjectDataSourceView.cs
- EntityTypeBase.cs
- DataGridTextBox.cs
- ConfigurationSection.cs
- DataRecordInfo.cs
- SharedUtils.cs
- SystemNetworkInterface.cs
- JournalNavigationScope.cs
- ApplicationCommands.cs
- TemplateModeChangedEventArgs.cs
- ApplicationId.cs
- ThreadExceptionEvent.cs
- MemberAccessException.cs
- ParserContext.cs
- CompiledAction.cs
- BamlTreeUpdater.cs
- NonVisualControlAttribute.cs
- dsa.cs
- SubclassTypeValidatorAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- AutoCompleteStringCollection.cs
- Path.cs
- TokenBasedSet.cs
- LinearQuaternionKeyFrame.cs
- WorkflowNamespace.cs
- NumberFormatter.cs