Code:
/ FX-1434 / FX-1434 / 1.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
- XNodeNavigator.cs
- PenThreadWorker.cs
- InputScopeNameConverter.cs
- ChildTable.cs
- TraceFilter.cs
- TransportListener.cs
- AtomicFile.cs
- SchemaTypeEmitter.cs
- TdsParserHelperClasses.cs
- XmlTextEncoder.cs
- WebPartZone.cs
- EventManager.cs
- CollectionBase.cs
- TrustManagerPromptUI.cs
- ArgumentNullException.cs
- MenuTracker.cs
- LostFocusEventManager.cs
- FloatAverageAggregationOperator.cs
- HierarchicalDataBoundControlAdapter.cs
- TypeDescriptionProvider.cs
- PageContentCollection.cs
- Empty.cs
- TableChangeProcessor.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- PropertyItemInternal.cs
- ItemsControlAutomationPeer.cs
- EastAsianLunisolarCalendar.cs
- EventManager.cs
- HTMLTextWriter.cs
- ThicknessKeyFrameCollection.cs
- DbConnectionOptions.cs
- LinkClickEvent.cs
- ProviderConnectionPointCollection.cs
- ProfessionalColorTable.cs
- SqlServices.cs
- Keywords.cs
- StyleXamlTreeBuilder.cs
- CalendarDayButton.cs
- TableParaClient.cs
- x509store.cs
- APCustomTypeDescriptor.cs
- TraceProvider.cs
- ServicePointManagerElement.cs
- UiaCoreProviderApi.cs
- EmbeddedObject.cs
- CultureNotFoundException.cs
- GifBitmapDecoder.cs
- AccessDataSource.cs
- ResetableIterator.cs
- HttpRequest.cs
- DataObjectCopyingEventArgs.cs
- HttpModuleCollection.cs
- LayoutEngine.cs
- TimeZoneInfo.cs
- CorrelationService.cs
- ConsoleEntryPoint.cs
- StringWriter.cs
- SaveFileDialog.cs
- PolicyLevel.cs
- PrintPreviewGraphics.cs
- RegexTree.cs
- ManualResetEvent.cs
- JavaScriptObjectDeserializer.cs
- CryptoStream.cs
- DefaultPerformanceCounters.cs
- HyperLinkStyle.cs
- CatalogZoneDesigner.cs
- UnsafeNativeMethods.cs
- GridViewUpdateEventArgs.cs
- DescriptionAttribute.cs
- ExpandableObjectConverter.cs
- COM2PropertyBuilderUITypeEditor.cs
- RegexMatch.cs
- GrammarBuilderBase.cs
- CodeTypeDelegate.cs
- CheckBoxList.cs
- FrameworkElementFactory.cs
- TransformCollection.cs
- BuilderElements.cs
- PeerMessageDispatcher.cs
- ErasingStroke.cs
- CursorInteropHelper.cs
- LineBreak.cs
- UnsafeNativeMethods.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- WebPartDisplayMode.cs
- HttpPostedFileWrapper.cs
- CqlLexerHelpers.cs
- MemoryMappedView.cs
- EncoderExceptionFallback.cs
- ToolStripInSituService.cs
- ReachFixedDocumentSerializerAsync.cs
- GridViewDeletedEventArgs.cs
- FamilyTypefaceCollection.cs
- FieldTemplateFactory.cs
- GenericWebPart.cs
- __FastResourceComparer.cs
- RawStylusInput.cs
- CroppedBitmap.cs
- ApplicationSettingsBase.cs