Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / Serialization / XmlRootAttribute.cs / 1 / 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
- MenuItemStyle.cs
- DisableDpiAwarenessAttribute.cs
- DefaultMergeHelper.cs
- XmlQueryType.cs
- VariableQuery.cs
- HandoffBehavior.cs
- CodeTypeDelegate.cs
- RectAnimationUsingKeyFrames.cs
- GenericUI.cs
- XpsS0ValidatingLoader.cs
- ProfileParameter.cs
- PathNode.cs
- _NegoStream.cs
- EngineSiteSapi.cs
- XPathNavigatorKeyComparer.cs
- DispatcherFrame.cs
- SyndicationItemFormatter.cs
- NumberEdit.cs
- LayoutDump.cs
- HttpResponse.cs
- SqlTopReducer.cs
- ConnectionsZone.cs
- CheckBoxPopupAdapter.cs
- FixUpCollection.cs
- RenderContext.cs
- Line.cs
- TextChangedEventArgs.cs
- TemplateColumn.cs
- ContentFileHelper.cs
- TracedNativeMethods.cs
- messageonlyhwndwrapper.cs
- validationstate.cs
- ExplicitDiscriminatorMap.cs
- ToolStripItem.cs
- SqlTriggerContext.cs
- CompilerWrapper.cs
- InfoCardBaseException.cs
- AppDomainFactory.cs
- StringUtil.cs
- EventTrigger.cs
- CompensatableTransactionScopeActivity.cs
- QueryStatement.cs
- HtmlElementErrorEventArgs.cs
- KnownColorTable.cs
- CodeMemberProperty.cs
- DSASignatureDeformatter.cs
- DbConnectionPool.cs
- LambdaCompiler.cs
- Exceptions.cs
- StatusBar.cs
- TextDecorations.cs
- DashStyles.cs
- OledbConnectionStringbuilder.cs
- ClientSettingsSection.cs
- HWStack.cs
- HostingEnvironmentException.cs
- DrawingContext.cs
- PageThemeCodeDomTreeGenerator.cs
- OrderedDictionary.cs
- AuthorizationRule.cs
- ResourcesBuildProvider.cs
- UpdateExpressionVisitor.cs
- HttpProxyTransportBindingElement.cs
- RefreshPropertiesAttribute.cs
- BaseAsyncResult.cs
- RSAPKCS1SignatureFormatter.cs
- HttpStreamXmlDictionaryReader.cs
- TextOutput.cs
- _LoggingObject.cs
- BuildResultCache.cs
- StrongName.cs
- ShaderRenderModeValidation.cs
- BehaviorEditorPart.cs
- WinOEToolBoxItem.cs
- DataSetViewSchema.cs
- XmlnsCache.cs
- DrawingGroup.cs
- ShapingWorkspace.cs
- ChineseLunisolarCalendar.cs
- DataGridViewTopLeftHeaderCell.cs
- EntityViewGenerator.cs
- Win32SafeHandles.cs
- SecurityUtils.cs
- XmlResolver.cs
- WorkflowMarkupElementEventArgs.cs
- QueryProcessor.cs
- UseManagedPresentationElement.cs
- LayoutExceptionEventArgs.cs
- CatalogPart.cs
- CqlGenerator.cs
- StylusEditingBehavior.cs
- DesignerActionService.cs
- nulltextnavigator.cs
- InkCanvasInnerCanvas.cs
- FieldDescriptor.cs
- HwndTarget.cs
- Int16Storage.cs
- SchemaElementDecl.cs
- EventListenerClientSide.cs
- TableColumn.cs