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
- IItemContainerGenerator.cs
- HelpInfo.cs
- TextContainerChangedEventArgs.cs
- TextEndOfLine.cs
- XmlIlGenerator.cs
- PerfCounters.cs
- TextBox.cs
- SocketElement.cs
- FontConverter.cs
- Trigger.cs
- WebPartZoneBase.cs
- InteropAutomationProvider.cs
- XmlReaderSettings.cs
- TextBox.cs
- ProfessionalColorTable.cs
- ClientProxyGenerator.cs
- ArraySortHelper.cs
- SmtpNtlmAuthenticationModule.cs
- XmlArrayItemAttributes.cs
- SelectionChangedEventArgs.cs
- StyleBamlTreeBuilder.cs
- ExtractorMetadata.cs
- EDesignUtil.cs
- CheckBoxBaseAdapter.cs
- WindowsListViewGroupSubsetLink.cs
- SetterTriggerConditionValueConverter.cs
- RecognizerBase.cs
- QilIterator.cs
- SymbolEqualComparer.cs
- AdCreatedEventArgs.cs
- PrivilegeNotHeldException.cs
- _PooledStream.cs
- InputQueueChannelAcceptor.cs
- VirtualPath.cs
- SoapObjectInfo.cs
- cache.cs
- ListViewDesigner.cs
- SplayTreeNode.cs
- FunctionDetailsReader.cs
- ValueConversionAttribute.cs
- SQLResource.cs
- BufferedStream2.cs
- Vector3D.cs
- ByteAnimation.cs
- BulletedListDesigner.cs
- NotificationContext.cs
- XmlNodeChangedEventArgs.cs
- XmlSchemaObjectCollection.cs
- WSFederationHttpBindingElement.cs
- SqlBulkCopyColumnMappingCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- IdentityManager.cs
- ConsoleTraceListener.cs
- HttpApplication.cs
- CursorInteropHelper.cs
- CodeDOMUtility.cs
- ObjectPersistData.cs
- FixedSOMPage.cs
- DocumentPaginator.cs
- StrongNameIdentityPermission.cs
- Viewport2DVisual3D.cs
- PeerCollaboration.cs
- EntityDataSourceWrapperCollection.cs
- DefaultValueConverter.cs
- ToolStripTextBox.cs
- NoResizeHandleGlyph.cs
- DetailsViewRowCollection.cs
- ParameterReplacerVisitor.cs
- MemberJoinTreeNode.cs
- FileClassifier.cs
- EpmSyndicationContentDeSerializer.cs
- DiscreteKeyFrames.cs
- EventLogConfiguration.cs
- PipelineComponent.cs
- ErasingStroke.cs
- TimelineGroup.cs
- Variant.cs
- XmlMembersMapping.cs
- ListViewItem.cs
- DriveInfo.cs
- MethodAccessException.cs
- DataControlButton.cs
- RequestCache.cs
- WebServiceResponse.cs
- InputLangChangeRequestEvent.cs
- ScalarConstant.cs
- JavaScriptString.cs
- SerializationInfoEnumerator.cs
- CannotUnloadAppDomainException.cs
- PageStatePersister.cs
- HtmlInputFile.cs
- URLEditor.cs
- GeometryDrawing.cs
- SecurityRuntime.cs
- HttpModule.cs
- ProgressBarHighlightConverter.cs
- EventLogPermissionAttribute.cs
- SecurityContext.cs
- ValidationErrorCollection.cs
- TreeNode.cs