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
- HtmlDocument.cs
- LocalizationComments.cs
- CharAnimationBase.cs
- ButtonRenderer.cs
- ButtonField.cs
- SchemaImporter.cs
- CssStyleCollection.cs
- RIPEMD160.cs
- ParserContext.cs
- HMACRIPEMD160.cs
- CounterSet.cs
- DataSourceCache.cs
- XmlNodeList.cs
- QuaternionRotation3D.cs
- BufferedGraphics.cs
- State.cs
- WebPartAuthorizationEventArgs.cs
- ButtonFieldBase.cs
- PropertyGridView.cs
- TreeView.cs
- RubberbandSelector.cs
- ZipIOModeEnforcingStream.cs
- HtmlTextBoxAdapter.cs
- HotSpotCollection.cs
- SqlTypesSchemaImporter.cs
- ProtocolElementCollection.cs
- SqlDataSourceView.cs
- HttpHandlerAction.cs
- LineGeometry.cs
- XMLUtil.cs
- SiteOfOriginPart.cs
- Container.cs
- SqlConnectionManager.cs
- DocumentAutomationPeer.cs
- XmlSchemaComplexContent.cs
- UnsafeNativeMethods.cs
- LocalIdKeyIdentifierClause.cs
- PenContext.cs
- ProviderConnectionPointCollection.cs
- Vector3DAnimationUsingKeyFrames.cs
- ArrayElementGridEntry.cs
- ImageSourceConverter.cs
- DataGridViewHeaderCell.cs
- ConfigurationException.cs
- RelationalExpressions.cs
- SweepDirectionValidation.cs
- CombinedGeometry.cs
- ImageCodecInfo.cs
- ApplicationSecurityInfo.cs
- DocumentViewerAutomationPeer.cs
- HttpModulesSection.cs
- ObjectDataSource.cs
- _Rfc2616CacheValidators.cs
- DiscoveryProxy.cs
- DesignBinding.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TextElementEnumerator.cs
- DropAnimation.xaml.cs
- KeyPullup.cs
- EntityKeyElement.cs
- Attachment.cs
- FrameworkElementAutomationPeer.cs
- TcpActivation.cs
- DataGridTable.cs
- JsonDataContract.cs
- SelfIssuedTokenFactoryCredential.cs
- WeakReferenceEnumerator.cs
- xdrvalidator.cs
- DeobfuscatingStream.cs
- AspNetSynchronizationContext.cs
- Part.cs
- ReadOnlyObservableCollection.cs
- SignatureConfirmationElement.cs
- DataGridSortCommandEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- ProfileService.cs
- XmlAnyElementAttributes.cs
- ProtocolsConfigurationEntry.cs
- PartialCachingAttribute.cs
- ComplexPropertyEntry.cs
- StrongNameMembershipCondition.cs
- InvalidTimeZoneException.cs
- UriParserTemplates.cs
- HtmlAnchor.cs
- PreviewPageInfo.cs
- NavigationCommands.cs
- Point.cs
- FixedFindEngine.cs
- PropertyInformation.cs
- Pkcs9Attribute.cs
- Debug.cs
- CheckBoxRenderer.cs
- TextDecorationCollection.cs
- PingOptions.cs
- CommentEmitter.cs
- TransactionInterop.cs
- EntityContainer.cs
- MemberPathMap.cs
- DPAPIProtectedConfigurationProvider.cs
- LoginUtil.cs