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
- CreateUserWizard.cs
- ConnectionManagementElementCollection.cs
- FixedTextContainer.cs
- Missing.cs
- ConditionalDesigner.cs
- PersonalizationProviderCollection.cs
- EntityContainerAssociationSet.cs
- ImageConverter.cs
- DebugManager.cs
- TextEditorContextMenu.cs
- BuilderElements.cs
- SortQueryOperator.cs
- XmlUtil.cs
- OleDbSchemaGuid.cs
- ActivityValidator.cs
- TimeoutException.cs
- PassportAuthenticationEventArgs.cs
- StandardTransformFactory.cs
- UInt64Storage.cs
- FrugalMap.cs
- ToolStripItemRenderEventArgs.cs
- ResourceDescriptionAttribute.cs
- RuntimeConfig.cs
- QueuePropertyVariants.cs
- TreeViewItemAutomationPeer.cs
- BulletedList.cs
- XPathSelectionIterator.cs
- XmlSchemaExporter.cs
- TrackBarRenderer.cs
- FormatVersion.cs
- CompiledRegexRunner.cs
- StylusButtonCollection.cs
- SecurityDocument.cs
- RadioButton.cs
- ByteFacetDescriptionElement.cs
- ByteStreamGeometryContext.cs
- JavascriptCallbackResponseProperty.cs
- CaseInsensitiveHashCodeProvider.cs
- WebHttpSecurityModeHelper.cs
- XmlDictionaryReaderQuotas.cs
- BitmapSizeOptions.cs
- AccessKeyManager.cs
- XPathQilFactory.cs
- DesignOnlyAttribute.cs
- XPathDocumentNavigator.cs
- CheckBoxField.cs
- BitmapSource.cs
- EncryptedType.cs
- XmlNodeList.cs
- SafeBitVector32.cs
- remotingproxy.cs
- GrammarBuilderRuleRef.cs
- codemethodreferenceexpression.cs
- FillErrorEventArgs.cs
- And.cs
- XmlSchemaGroup.cs
- ActivitySurrogateSelector.cs
- SectionInformation.cs
- QueryableFilterRepeater.cs
- ChannelSinkStacks.cs
- MDIWindowDialog.cs
- TextRangeProviderWrapper.cs
- VersionUtil.cs
- WindowsAltTab.cs
- TextControlDesigner.cs
- CoTaskMemHandle.cs
- CodeDomSerializer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- HyperLinkField.cs
- Pointer.cs
- DynamicMethod.cs
- sqlmetadatafactory.cs
- FormViewModeEventArgs.cs
- TextureBrush.cs
- RestHandler.cs
- ImageBrush.cs
- CodeDirectoryCompiler.cs
- COM2EnumConverter.cs
- DLinqTableProvider.cs
- CallId.cs
- DashStyles.cs
- PathData.cs
- TypeConverterMarkupExtension.cs
- Int64Storage.cs
- DataRowChangeEvent.cs
- AsyncStreamReader.cs
- SQLDoubleStorage.cs
- HostingPreferredMapPath.cs
- ViewBase.cs
- ResourceType.cs
- XPathItem.cs
- HtmlToClrEventProxy.cs
- IndexedEnumerable.cs
- DataBindingExpressionBuilder.cs
- EventDescriptorCollection.cs
- SqlVersion.cs
- WindowsScrollBarBits.cs
- CriticalHandle.cs
- IIS7WorkerRequest.cs
- CustomGrammar.cs