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
- Int32RectValueSerializer.cs
- TreeNodeCollection.cs
- MonikerSyntaxException.cs
- XmlEncoding.cs
- NativeMethods.cs
- DataBinding.cs
- _SslState.cs
- DecimalConstantAttribute.cs
- Native.cs
- IgnoreFileBuildProvider.cs
- SmtpNegotiateAuthenticationModule.cs
- TagPrefixCollection.cs
- Attributes.cs
- DataControlLinkButton.cs
- __TransparentProxy.cs
- OptimalTextSource.cs
- ConfigurationManagerHelper.cs
- BindableAttribute.cs
- BasePropertyDescriptor.cs
- DataGridPagingPage.cs
- ResourceContainer.cs
- arc.cs
- UnmanagedMemoryStreamWrapper.cs
- RandomNumberGenerator.cs
- EntityContainer.cs
- ApplicationHost.cs
- MasterPage.cs
- PixelFormats.cs
- ObjectQuery.cs
- ResolveMatchesMessageCD1.cs
- DateTimePickerDesigner.cs
- WebPartMinimizeVerb.cs
- PlaceHolder.cs
- DefaultPrintController.cs
- TransformGroup.cs
- HierarchicalDataBoundControlAdapter.cs
- Clipboard.cs
- HGlobalSafeHandle.cs
- XmlSchemaSimpleType.cs
- RoleManagerEventArgs.cs
- TraceHandler.cs
- SiteMapNodeCollection.cs
- ISAPIWorkerRequest.cs
- DynamicDataRouteHandler.cs
- XsdDuration.cs
- WebPartManagerDesigner.cs
- PerformanceCounterNameAttribute.cs
- DependencyObjectValidator.cs
- XmlILConstructAnalyzer.cs
- SuppressIldasmAttribute.cs
- ReferenceSchema.cs
- TextContainerChangeEventArgs.cs
- Message.cs
- CodeGotoStatement.cs
- BaseParagraph.cs
- RSACryptoServiceProvider.cs
- TextDataBindingHandler.cs
- DesignerTransaction.cs
- PolyBezierSegment.cs
- WebFaultClientMessageInspector.cs
- WebDescriptionAttribute.cs
- Tuple.cs
- MenuTracker.cs
- Script.cs
- QuadraticBezierSegment.cs
- TraceEventCache.cs
- ToolStripDropDownButton.cs
- __Error.cs
- RegisteredHiddenField.cs
- PolyQuadraticBezierSegment.cs
- AppDomainEvidenceFactory.cs
- HashHelper.cs
- TraceUtility.cs
- ProbeMatchesApril2005.cs
- WrappedIUnknown.cs
- DataTableCollection.cs
- TextServicesManager.cs
- MarginsConverter.cs
- DataControlFieldTypeEditor.cs
- StatusBarItemAutomationPeer.cs
- CompilationLock.cs
- ResourceType.cs
- XamlGridLengthSerializer.cs
- CheckableControlBaseAdapter.cs
- DataGridAddNewRow.cs
- IPAddress.cs
- AppDomainResourcePerfCounters.cs
- CustomErrorsSectionWrapper.cs
- AbstractExpressions.cs
- NameService.cs
- DragCompletedEventArgs.cs
- ChangePassword.cs
- pingexception.cs
- autovalidator.cs
- SQLResource.cs
- ECDiffieHellmanPublicKey.cs
- MultipartContentParser.cs
- KernelTypeValidation.cs
- ControlDesignerState.cs
- SecurityAlgorithmSuite.cs