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
- ToolStripContainer.cs
- FillBehavior.cs
- DataFormats.cs
- NonVisualControlAttribute.cs
- WriteFileContext.cs
- RuleInfoComparer.cs
- ProfilePropertyNameValidator.cs
- PkcsUtils.cs
- BuildProviderCollection.cs
- __ConsoleStream.cs
- PropertyConverter.cs
- SqlExpressionNullability.cs
- ControlIdConverter.cs
- FixedHyperLink.cs
- Light.cs
- FileLevelControlBuilderAttribute.cs
- _NativeSSPI.cs
- NavigationHelper.cs
- Rotation3D.cs
- BitmapEffectInputData.cs
- SerializerDescriptor.cs
- MaskInputRejectedEventArgs.cs
- PathGeometry.cs
- DocumentXmlWriter.cs
- UnaryNode.cs
- FlowLayout.cs
- LassoSelectionBehavior.cs
- CodeDirectoryCompiler.cs
- SqlDependencyListener.cs
- Repeater.cs
- SplitterCancelEvent.cs
- __ConsoleStream.cs
- ThreadExceptionDialog.cs
- OletxDependentTransaction.cs
- DebugInfoGenerator.cs
- figurelengthconverter.cs
- EntityDataSourceDesignerHelper.cs
- ReflectionPermission.cs
- HealthMonitoringSection.cs
- QueryOperator.cs
- ExpressionBindingCollection.cs
- DeobfuscatingStream.cs
- SQLInt32Storage.cs
- ExceptionHandler.cs
- GridPattern.cs
- PolyLineSegmentFigureLogic.cs
- RegexCaptureCollection.cs
- Point.cs
- DbConnectionPoolIdentity.cs
- SafeCoTaskMem.cs
- X509CertificateChain.cs
- elementinformation.cs
- PositiveTimeSpanValidatorAttribute.cs
- LinkedResource.cs
- ButtonFieldBase.cs
- SystemIPInterfaceStatistics.cs
- NonVisualControlAttribute.cs
- PropertyValueUIItem.cs
- RoutedEventValueSerializer.cs
- ReadOnlyHierarchicalDataSource.cs
- AuthenticationSection.cs
- PageEventArgs.cs
- SoapEnumAttribute.cs
- BlockUIContainer.cs
- Attachment.cs
- ClientEventManager.cs
- CompressStream.cs
- MTConfigUtil.cs
- ExecutionEngineException.cs
- GradientBrush.cs
- XmlAttributeCollection.cs
- ModifyActivitiesPropertyDescriptor.cs
- WpfSharedBamlSchemaContext.cs
- DesignerVerbCollection.cs
- FocusTracker.cs
- storepermissionattribute.cs
- ContentPosition.cs
- DataGridViewButtonColumn.cs
- Int64AnimationBase.cs
- PropertiesTab.cs
- DrawingBrush.cs
- DataGridViewImageCell.cs
- FontFamily.cs
- AddIn.cs
- ElapsedEventArgs.cs
- InputGestureCollection.cs
- BrowserCapabilitiesCompiler.cs
- QilGenerator.cs
- EditorPartDesigner.cs
- PanelContainerDesigner.cs
- AutomationIdentifier.cs
- dataprotectionpermission.cs
- ParsedAttributeCollection.cs
- ContainerVisual.cs
- SoapTransportImporter.cs
- SafeEventLogReadHandle.cs
- GridViewColumnHeader.cs
- OdbcConnectionString.cs
- OleDbWrapper.cs
- ExpressionList.cs