Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.] ///// 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
- XmlArrayAttribute.cs
- OutOfProcStateClientManager.cs
- DataRecordInternal.cs
- SetStoryboardSpeedRatio.cs
- BindingMAnagerBase.cs
- XmlSerializerVersionAttribute.cs
- StateItem.cs
- DelegateArgumentValue.cs
- ScrollViewer.cs
- DispatchChannelSink.cs
- StateManagedCollection.cs
- ElementInit.cs
- CompoundFileReference.cs
- TextTreePropertyUndoUnit.cs
- SettingsPropertyValue.cs
- coordinator.cs
- SmiConnection.cs
- TypeConverterHelper.cs
- RegistryExceptionHelper.cs
- DistributedTransactionPermission.cs
- NativeCompoundFileAPIs.cs
- Axis.cs
- PlainXmlWriter.cs
- Message.cs
- JsonFormatWriterGenerator.cs
- HttpServerVarsCollection.cs
- ResourcesChangeInfo.cs
- ParserContext.cs
- ProfileSettingsCollection.cs
- BitmapCache.cs
- XmlSchemaFacet.cs
- StateMachineWorkflowDesigner.cs
- BindingExpressionUncommonField.cs
- XpsFont.cs
- ResourceAttributes.cs
- ChannelCacheDefaults.cs
- ADRoleFactory.cs
- Parameter.cs
- DispatcherSynchronizationContext.cs
- TextCompositionEventArgs.cs
- Identity.cs
- ButtonFieldBase.cs
- FixedTextView.cs
- EventMap.cs
- ImageDrawing.cs
- PropertyTabChangedEvent.cs
- DocumentViewer.cs
- EdmItemError.cs
- OleServicesContext.cs
- TimeEnumHelper.cs
- SystemParameters.cs
- ConfigXmlElement.cs
- IntSecurity.cs
- IPCCacheManager.cs
- NegotiateStream.cs
- FixedSOMTableCell.cs
- SelectingProviderEventArgs.cs
- oledbconnectionstring.cs
- BeginStoryboard.cs
- XmlTextAttribute.cs
- BinaryConverter.cs
- ToolStripDropDownItem.cs
- CellConstant.cs
- AdornerDecorator.cs
- XmlWriterSettings.cs
- HtmlSelectionListAdapter.cs
- DbReferenceCollection.cs
- SID.cs
- GroupDescription.cs
- ComplexObject.cs
- IgnoreDataMemberAttribute.cs
- CustomDictionarySources.cs
- tooltip.cs
- ProfileGroupSettingsCollection.cs
- InkCanvasSelectionAdorner.cs
- ProcessModelSection.cs
- Compiler.cs
- BindableAttribute.cs
- BaseCollection.cs
- CellTreeNodeVisitors.cs
- Transform.cs
- MethodCallTranslator.cs
- BamlLocalizableResourceKey.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- AutoCompleteStringCollection.cs
- ApplicationFileParser.cs
- PrintControllerWithStatusDialog.cs
- SqlNotificationRequest.cs
- FontFamilyValueSerializer.cs
- EditorPart.cs
- NamedPermissionSet.cs
- shaperfactory.cs
- designeractionlistschangedeventargs.cs
- ProgressPage.cs
- SqlDataSourceEnumerator.cs
- versioninfo.cs
- AccessDataSourceView.cs
- DynamicVirtualDiscoSearcher.cs
- X509Utils.cs
- WaitHandle.cs