Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- AspCompat.cs
- NumericPagerField.cs
- PathTooLongException.cs
- PasswordTextNavigator.cs
- TransformPattern.cs
- DependencySource.cs
- MimeTypeAttribute.cs
- SourceItem.cs
- ServiceOperationHelpers.cs
- CaseInsensitiveHashCodeProvider.cs
- DataGridViewRowEventArgs.cs
- ClientTargetSection.cs
- Point.cs
- DrawingAttributesDefaultValueFactory.cs
- BindingCollection.cs
- Compiler.cs
- DataIdProcessor.cs
- RequestCacheEntry.cs
- PartialCachingControl.cs
- BindingBase.cs
- SmtpDateTime.cs
- DiagnosticsConfiguration.cs
- VerificationException.cs
- HttpConfigurationSystem.cs
- BinaryMessageEncoder.cs
- DelegateBodyWriter.cs
- DivideByZeroException.cs
- RoleManagerModule.cs
- SynchronousChannelMergeEnumerator.cs
- MemoryFailPoint.cs
- DataServiceQueryProvider.cs
- AssemblyFilter.cs
- Overlapped.cs
- BlurBitmapEffect.cs
- DBConcurrencyException.cs
- XmlCDATASection.cs
- BasicHttpSecurity.cs
- InternalControlCollection.cs
- ClientFormsIdentity.cs
- LateBoundBitmapDecoder.cs
- MessageAction.cs
- ObjectAnimationUsingKeyFrames.cs
- InvokePattern.cs
- CrossSiteScriptingValidation.cs
- ToolStripGripRenderEventArgs.cs
- CompositeKey.cs
- URLAttribute.cs
- RegionIterator.cs
- RichTextBox.cs
- SwitchLevelAttribute.cs
- UDPClient.cs
- ConsumerConnectionPointCollection.cs
- CodeRegionDirective.cs
- ProtocolImporter.cs
- ObjectIDGenerator.cs
- ImmutableCollection.cs
- ScrollData.cs
- RijndaelManagedTransform.cs
- BitmapPalettes.cs
- RowUpdatingEventArgs.cs
- TemplateBaseAction.cs
- ValueTable.cs
- Misc.cs
- ResourceContainer.cs
- ReceiveActivityDesigner.cs
- ClientProxyGenerator.cs
- ToolStripStatusLabel.cs
- SystemMulticastIPAddressInformation.cs
- CanExecuteRoutedEventArgs.cs
- RtfToXamlReader.cs
- MemoryStream.cs
- VirtualizingPanel.cs
- BitmapEffectDrawingContextWalker.cs
- HexParser.cs
- DateTimeFormat.cs
- CasesDictionary.cs
- ServicePerformanceCounters.cs
- CompilationPass2TaskInternal.cs
- AvTraceFormat.cs
- XmlSchemaExporter.cs
- DataRelationCollection.cs
- SafeRegistryHandle.cs
- ListBox.cs
- DocobjHost.cs
- LineUtil.cs
- DataGridTextBoxColumn.cs
- ArgumentOutOfRangeException.cs
- PropertyPathConverter.cs
- BaseDataListPage.cs
- RoutedEventArgs.cs
- CopyOfAction.cs
- InheritanceAttribute.cs
- ModulesEntry.cs
- ListBindingHelper.cs
- InstancePersistenceException.cs
- IteratorFilter.cs
- DelayedRegex.cs
- DataControlCommands.cs
- CallTemplateAction.cs
- FrameworkElementAutomationPeer.cs