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
- RightsManagementLicense.cs
- CommentAction.cs
- SmiEventSink_Default.cs
- Vector3DCollectionConverter.cs
- PropertyItem.cs
- LineServicesRun.cs
- WindowsContainer.cs
- OdbcConnectionHandle.cs
- BamlTreeNode.cs
- ServiceModelStringsVersion1.cs
- StyleXamlParser.cs
- XhtmlBasicPageAdapter.cs
- PrimitiveXmlSerializers.cs
- EntityDataSourceChangingEventArgs.cs
- DataGridCommandEventArgs.cs
- MobileControlDesigner.cs
- FlowThrottle.cs
- Contracts.cs
- OptimisticConcurrencyException.cs
- KnownAssemblyEntry.cs
- StyleSheetDesigner.cs
- CreateRefExpr.cs
- __Filters.cs
- PropertyPathConverter.cs
- FieldInfo.cs
- EditorBrowsableAttribute.cs
- FreezableDefaultValueFactory.cs
- RegexRunnerFactory.cs
- PageSettings.cs
- AssemblyAssociatedContentFileAttribute.cs
- BufferModesCollection.cs
- PropertyGeneratedEventArgs.cs
- EditCommandColumn.cs
- OptionalColumn.cs
- SourceCollection.cs
- TextEditorSpelling.cs
- TrackPoint.cs
- Message.cs
- StoryFragments.cs
- HttpValueCollection.cs
- Normalizer.cs
- Int16Storage.cs
- GridViewAutomationPeer.cs
- CustomTrackingQuery.cs
- StrongNameUtility.cs
- ConfigXmlElement.cs
- x509utils.cs
- ContentType.cs
- UIElementPropertyUndoUnit.cs
- ImageUrlEditor.cs
- ReadOnlyPropertyMetadata.cs
- X509Extension.cs
- AnimatedTypeHelpers.cs
- WeakEventTable.cs
- DesignerAutoFormat.cs
- WebPartVerbsEventArgs.cs
- MethodExpr.cs
- JavascriptXmlWriterWrapper.cs
- RadioButtonRenderer.cs
- TextPointer.cs
- HandlerBase.cs
- objectresult_tresulttype.cs
- HostSecurityManager.cs
- HtmlInputImage.cs
- WebScriptServiceHostFactory.cs
- QilScopedVisitor.cs
- ConfigurationValidatorAttribute.cs
- SessionEndedEventArgs.cs
- ArcSegment.cs
- ProgressBar.cs
- FormatException.cs
- QuestionEventArgs.cs
- SymLanguageType.cs
- ScriptingJsonSerializationSection.cs
- SiteMapProvider.cs
- FormattedTextSymbols.cs
- SqlDependencyListener.cs
- UIElement.cs
- WorkflowPageSetupDialog.cs
- MetadataItemSerializer.cs
- HtmlInputCheckBox.cs
- SafeReversePInvokeHandle.cs
- Separator.cs
- EntityDataSourceColumn.cs
- FreezableCollection.cs
- StdValidatorsAndConverters.cs
- UrlAuthFailedErrorFormatter.cs
- RuntimeArgumentHandle.cs
- PrintSystemException.cs
- ExpressionBindingsDialog.cs
- CheckBox.cs
- FileIOPermission.cs
- ServiceNameCollection.cs
- FixedDocumentSequencePaginator.cs
- StoreAnnotationsMap.cs
- WebServiceParameterData.cs
- MsmqVerifier.cs
- ToolStripManager.cs
- RpcResponse.cs
- FontSource.cs