Code:
/ 4.0 / 4.0 / 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.] ///// 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
- HwndHostAutomationPeer.cs
- XpsStructure.cs
- DateTimeOffsetConverter.cs
- Label.cs
- SQLCharsStorage.cs
- TransactionProtocolConverter.cs
- RefreshEventArgs.cs
- ConfigUtil.cs
- MenuTracker.cs
- BatchServiceHost.cs
- PeerCollaborationPermission.cs
- ReflectEventDescriptor.cs
- PageContent.cs
- PenCursorManager.cs
- Ref.cs
- ColorTransformHelper.cs
- ProxyWebPartManagerDesigner.cs
- UserControlAutomationPeer.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ElementsClipboardData.cs
- DataGridCaption.cs
- CLSCompliantAttribute.cs
- ProtectedUri.cs
- CompareInfo.cs
- StringBlob.cs
- UriScheme.cs
- WebPartCollection.cs
- TransformerTypeCollection.cs
- OleDbConnectionFactory.cs
- XDeferredAxisSource.cs
- VirtualDirectoryMappingCollection.cs
- CrossAppDomainChannel.cs
- PKCS1MaskGenerationMethod.cs
- WhitespaceRule.cs
- ToolStripProgressBar.cs
- CookieProtection.cs
- XmlSchemaExporter.cs
- DbMetaDataFactory.cs
- ImageMap.cs
- NameValueFileSectionHandler.cs
- SchemaDeclBase.cs
- GridViewDeleteEventArgs.cs
- ColorContext.cs
- COM2EnumConverter.cs
- printdlgexmarshaler.cs
- TimelineGroup.cs
- ToolStripContainer.cs
- FlowDocumentFormatter.cs
- XmlSchemaAppInfo.cs
- RegexWriter.cs
- HtmlUtf8RawTextWriter.cs
- StylusCaptureWithinProperty.cs
- X500Name.cs
- DataSet.cs
- BlurBitmapEffect.cs
- FaultDesigner.cs
- ChannelFactory.cs
- SqlReorderer.cs
- DelayedRegex.cs
- WinEventHandler.cs
- ServiceEndpoint.cs
- HwndHostAutomationPeer.cs
- ServiceDurableInstanceContextProvider.cs
- BitmapEffectGeneralTransform.cs
- shaper.cs
- ObjectComplexPropertyMapping.cs
- XmlMtomWriter.cs
- HttpProfileGroupBase.cs
- XmlSchemaSimpleContent.cs
- EmptyReadOnlyDictionaryInternal.cs
- ReachSerializerAsync.cs
- HandlerWithFactory.cs
- WorkflowFileItem.cs
- ObjectAnimationBase.cs
- CustomAssemblyResolver.cs
- LineServices.cs
- DesignConnectionCollection.cs
- GregorianCalendarHelper.cs
- URLMembershipCondition.cs
- MachineKeyValidationConverter.cs
- Int32RectConverter.cs
- WebPartDescription.cs
- RegisterResponseInfo.cs
- QilFactory.cs
- DropShadowEffect.cs
- BitVector32.cs
- WhitespaceSignificantCollectionAttribute.cs
- NetworkInterface.cs
- MachineKeyConverter.cs
- DataGridBeginningEditEventArgs.cs
- XmlSchemaInclude.cs
- ParallelSeparator.xaml.cs
- DiagnosticEventProvider.cs
- CoreSwitches.cs
- GPStream.cs
- DiscardableAttribute.cs
- SqlDataSourceConfigureSelectPanel.cs
- ValidationRule.cs
- Item.cs
- BoolExpr.cs