Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SafeFileMapViewHandle.cs
- BasicExpressionVisitor.cs
- SqlCommandSet.cs
- ListViewEditEventArgs.cs
- WindowsFormsHost.cs
- AuthenticatedStream.cs
- InteropAutomationProvider.cs
- SoapExtensionTypeElement.cs
- InternalCache.cs
- Quaternion.cs
- RowBinding.cs
- WindowsAuthenticationModule.cs
- SafeSecurityHelper.cs
- TreeViewAutomationPeer.cs
- AsnEncodedData.cs
- CreateDataSourceDialog.cs
- TextBoxAutoCompleteSourceConverter.cs
- ObjectMemberMapping.cs
- SendKeys.cs
- MenuItem.cs
- CodeTypeReferenceExpression.cs
- SafePipeHandle.cs
- precedingquery.cs
- XmlBinaryReader.cs
- ReadWriteSpinLock.cs
- HtmlDocument.cs
- DelegateSerializationHolder.cs
- DocumentReference.cs
- StylusTip.cs
- XamlFxTrace.cs
- DetailsViewPagerRow.cs
- PinnedBufferMemoryStream.cs
- AggregatePushdown.cs
- SmiGettersStream.cs
- PerfProviderCollection.cs
- RichTextBox.cs
- ConfigurationErrorsException.cs
- EnterpriseServicesHelper.cs
- XmlAttributeCollection.cs
- DataGridrowEditEndingEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- ServiceObjectContainer.cs
- WebServiceReceive.cs
- NativeMethods.cs
- DataViewListener.cs
- SqlAliasesReferenced.cs
- RsaSecurityToken.cs
- ListBoxItem.cs
- _LoggingObject.cs
- FieldToken.cs
- RegionInfo.cs
- JobPageOrder.cs
- RuntimeWrappedException.cs
- SessionEndingEventArgs.cs
- ClientBuildManagerCallback.cs
- ControlBuilderAttribute.cs
- MobileUITypeEditor.cs
- ColumnMapProcessor.cs
- RIPEMD160.cs
- Byte.cs
- AspNetHostingPermission.cs
- SamlEvidence.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ResponseStream.cs
- DockPanel.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Menu.cs
- FormViewActionList.cs
- AppliedDeviceFiltersEditor.cs
- HostedAspNetEnvironment.cs
- ConstraintCollection.cs
- PageCatalogPart.cs
- AttributeCollection.cs
- TableDesigner.cs
- TcpChannelListener.cs
- WebPartMenuStyle.cs
- ActivationService.cs
- SurrogateSelector.cs
- AnonymousIdentificationModule.cs
- IdentityReference.cs
- CheckBoxRenderer.cs
- ContentElement.cs
- DBParameter.cs
- _HeaderInfo.cs
- DataRowComparer.cs
- DataGridViewCellValueEventArgs.cs
- PrintEvent.cs
- ControlValuePropertyAttribute.cs
- EntityDataSourceState.cs
- ArgumentValidation.cs
- SectionInformation.cs
- DeflateStream.cs
- PrintDocument.cs
- UnicodeEncoding.cs
- CalendarAutoFormat.cs
- ImageInfo.cs
- ThumbAutomationPeer.cs
- TextWriterTraceListener.cs
- COM2ExtendedBrowsingHandler.cs
- GeneratedCodeAttribute.cs