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
- OleDbConnectionPoolGroupProviderInfo.cs
- WebHttpBehavior.cs
- HtmlString.cs
- HttpStaticObjectsCollectionBase.cs
- FactoryMaker.cs
- ElementNotAvailableException.cs
- TreeWalker.cs
- ActivationServices.cs
- RijndaelManaged.cs
- DataColumnMapping.cs
- UnionCodeGroup.cs
- ResourceAssociationType.cs
- DispatcherFrame.cs
- ConfigurationStrings.cs
- Internal.cs
- QuadraticBezierSegment.cs
- SpellerInterop.cs
- CheckableControlBaseAdapter.cs
- ConfigurationManagerInternal.cs
- PolicyStatement.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- GridPatternIdentifiers.cs
- MetadataImporter.cs
- Inline.cs
- SimpleType.cs
- ISAPIRuntime.cs
- StringFreezingAttribute.cs
- Context.cs
- IndexedString.cs
- ResourcesBuildProvider.cs
- OutputCacheSection.cs
- fixedPageContentExtractor.cs
- PropertiesTab.cs
- ReadOnlyCollection.cs
- WpfPayload.cs
- XmlEncodedRawTextWriter.cs
- GB18030Encoding.cs
- _NegoState.cs
- HttpDebugHandler.cs
- JsonReaderDelegator.cs
- CodeAttributeArgument.cs
- QilVisitor.cs
- TextProviderWrapper.cs
- MenuItem.cs
- _OSSOCK.cs
- TraceUtility.cs
- AddInControllerImpl.cs
- StrokeNodeOperations.cs
- InvalidFilterCriteriaException.cs
- FileDialogCustomPlacesCollection.cs
- CodeTypeParameterCollection.cs
- MailMessageEventArgs.cs
- WebPartCatalogAddVerb.cs
- ScrollChrome.cs
- PrintPreviewGraphics.cs
- KeysConverter.cs
- TreeNodeSelectionProcessor.cs
- MediaCommands.cs
- FieldMetadata.cs
- VirtualPathProvider.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlSchemaDocumentation.cs
- EntityDataSource.cs
- RC2.cs
- SafeLocalMemHandle.cs
- DelegatingTypeDescriptionProvider.cs
- TreeNode.cs
- ClientScriptItem.cs
- CallId.cs
- SendMailErrorEventArgs.cs
- ArrangedElementCollection.cs
- SecurityCriticalDataForSet.cs
- ManipulationCompletedEventArgs.cs
- WindowsFormsSectionHandler.cs
- LoginCancelEventArgs.cs
- MemberProjectionIndex.cs
- ScriptControlDescriptor.cs
- Bezier.cs
- RelationshipWrapper.cs
- XmlMtomWriter.cs
- NullableDoubleMinMaxAggregationOperator.cs
- StrokeIntersection.cs
- SingleTagSectionHandler.cs
- ExistsInCollection.cs
- Queue.cs
- HtmlEmptyTagControlBuilder.cs
- PiiTraceSource.cs
- OneOfElement.cs
- DetailsViewUpdateEventArgs.cs
- ClientSideQueueItem.cs
- WebDescriptionAttribute.cs
- SqlXml.cs
- ChildDocumentBlock.cs
- HttpGetProtocolImporter.cs
- BitmapMetadata.cs
- PropertyContainer.cs
- PackWebRequest.cs
- ImageKeyConverter.cs
- XmlReaderSettings.cs
- ActivityTypeDesigner.xaml.cs