Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DeobfuscatingStream.cs
- SoapEnumAttribute.cs
- XmlCharType.cs
- BinaryEditor.cs
- XmlSchemaException.cs
- DuplicateWaitObjectException.cs
- ActionFrame.cs
- FixedSOMImage.cs
- PropertyChangingEventArgs.cs
- CodeLabeledStatement.cs
- ViewRendering.cs
- IdentityNotMappedException.cs
- FontCacheUtil.cs
- DocumentPageHost.cs
- Padding.cs
- BamlLocalizabilityResolver.cs
- PrePostDescendentsWalker.cs
- ComplexTypeEmitter.cs
- wgx_render.cs
- GenericUriParser.cs
- SSmlParser.cs
- DialogResultConverter.cs
- IndentedWriter.cs
- HelpFileFileNameEditor.cs
- AccessDataSource.cs
- DataGridViewAccessibleObject.cs
- DataObjectSettingDataEventArgs.cs
- ClientTargetCollection.cs
- StylusShape.cs
- QilValidationVisitor.cs
- NestPullup.cs
- Visual.cs
- CaseInsensitiveComparer.cs
- ImageConverter.cs
- Slider.cs
- ToolStripPanelRenderEventArgs.cs
- RoutedCommand.cs
- Convert.cs
- ComboBoxItem.cs
- Win32Exception.cs
- TreeNode.cs
- ItemChangedEventArgs.cs
- EncryptedReference.cs
- BinaryObjectWriter.cs
- StreamWithDictionary.cs
- BCLDebug.cs
- SegmentInfo.cs
- CharacterBuffer.cs
- DataGridViewComboBoxColumn.cs
- Regex.cs
- VScrollBar.cs
- AuthenticationModulesSection.cs
- CookieParameter.cs
- PropertiesTab.cs
- Style.cs
- ViewCellRelation.cs
- RuntimeConfigurationRecord.cs
- DocumentXmlWriter.cs
- SystemInfo.cs
- CharacterBufferReference.cs
- DataProtection.cs
- DoubleKeyFrameCollection.cs
- TransformerTypeCollection.cs
- WindowsGraphicsCacheManager.cs
- URLString.cs
- Propagator.cs
- BinHexEncoding.cs
- ConfigurationManager.cs
- StylusPointPropertyInfo.cs
- HijriCalendar.cs
- ADMembershipProvider.cs
- SqlNodeAnnotations.cs
- MachineKey.cs
- _Win32.cs
- UnaryOperationBinder.cs
- MailDefinition.cs
- ReaderWriterLock.cs
- MulticastIPAddressInformationCollection.cs
- CallSite.cs
- RuntimeHelpers.cs
- QueryTaskGroupState.cs
- GenericsInstances.cs
- XmlSchemaInfo.cs
- HwndMouseInputProvider.cs
- TableCellAutomationPeer.cs
- FixedPage.cs
- ComponentRenameEvent.cs
- SeekStoryboard.cs
- PropertyEntry.cs
- LazyLoadBehavior.cs
- DbResourceAllocator.cs
- ActivityDesigner.cs
- UiaCoreApi.cs
- ImmutableObjectAttribute.cs
- MembershipSection.cs
- DataGridRelationshipRow.cs
- ScriptControlManager.cs
- WindowInteractionStateTracker.cs
- Parameter.cs
- OrderingInfo.cs