Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlRootAttribute.cs / 1305376 / 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
- TaskExtensions.cs
- Restrictions.cs
- InvalidateEvent.cs
- XmlSchemaGroup.cs
- DbSourceParameterCollection.cs
- WebException.cs
- InsufficientMemoryException.cs
- XmlWhitespace.cs
- Renderer.cs
- Buffer.cs
- SimpleApplicationHost.cs
- Vector3DAnimation.cs
- CancelAsyncOperationRequest.cs
- TrackingProvider.cs
- SmiConnection.cs
- TableParagraph.cs
- ValidatingReaderNodeData.cs
- TracePayload.cs
- WhiteSpaceTrimStringConverter.cs
- HttpPostedFileWrapper.cs
- RoleServiceManager.cs
- SmiSettersStream.cs
- ObjectSet.cs
- ToolStripPanelRow.cs
- WebPartEditVerb.cs
- ComplexTypeEmitter.cs
- CultureMapper.cs
- TextEmbeddedObject.cs
- NullableLongMinMaxAggregationOperator.cs
- CanExecuteRoutedEventArgs.cs
- BoundPropertyEntry.cs
- OpCodes.cs
- BuildTopDownAttribute.cs
- WindowsTokenRoleProvider.cs
- DSASignatureDeformatter.cs
- TypeDescriptionProvider.cs
- RoleExceptions.cs
- SerializationTrace.cs
- SafeBitVector32.cs
- FormsAuthenticationTicket.cs
- Geometry.cs
- BinaryMessageFormatter.cs
- StylusPointPropertyInfo.cs
- PEFileReader.cs
- ListenerUnsafeNativeMethods.cs
- Console.cs
- EncodingInfo.cs
- SynchronizingStream.cs
- RewritingPass.cs
- RestHandlerFactory.cs
- PrivacyNoticeBindingElement.cs
- DetailsViewInsertEventArgs.cs
- InputBindingCollection.cs
- ErrorInfoXmlDocument.cs
- ResourcePool.cs
- FrameworkContextData.cs
- EntryWrittenEventArgs.cs
- TemplatedWizardStep.cs
- SqlDuplicator.cs
- AlgoModule.cs
- FontFamily.cs
- StringResourceManager.cs
- HttpListenerPrefixCollection.cs
- AdjustableArrowCap.cs
- WebServiceMethodData.cs
- COM2TypeInfoProcessor.cs
- ServiceObjectContainer.cs
- TabPanel.cs
- UnsafeMethods.cs
- MultiSelector.cs
- ChooseAction.cs
- SettingsProperty.cs
- errorpatternmatcher.cs
- TextRangeEditLists.cs
- AdvancedBindingPropertyDescriptor.cs
- Mouse.cs
- UnmanagedBitmapWrapper.cs
- UnauthorizedWebPart.cs
- _BufferOffsetSize.cs
- HyperLinkStyle.cs
- QueryOptionExpression.cs
- Transform3D.cs
- ActivatedMessageQueue.cs
- CryptoStream.cs
- SqlDataSource.cs
- ServerProtocol.cs
- QilVisitor.cs
- WaitHandleCannotBeOpenedException.cs
- ChtmlTextWriter.cs
- ListCollectionView.cs
- SchemaMapping.cs
- CompensationHandlingFilter.cs
- brushes.cs
- PartitionerQueryOperator.cs
- ListChunk.cs
- Divide.cs
- CodeEntryPointMethod.cs
- ZipIOExtraFieldPaddingElement.cs
- MediaPlayerState.cs
- LogWriteRestartAreaAsyncResult.cs