Code:
/ DotNET / DotNET / 8.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
- TriggerAction.cs
- RadialGradientBrush.cs
- OleDbPermission.cs
- RsaSecurityTokenAuthenticator.cs
- SpecialFolderEnumConverter.cs
- OdbcDataReader.cs
- OutKeywords.cs
- ListParaClient.cs
- ImageField.cs
- WindowsPen.cs
- DispatchWrapper.cs
- EndpointIdentity.cs
- ListViewInsertEventArgs.cs
- DbQueryCommandTree.cs
- DrawingAttributes.cs
- MouseBinding.cs
- NodeLabelEditEvent.cs
- ConfigErrorGlyph.cs
- SerialErrors.cs
- CryptoApi.cs
- UnsafeNativeMethods.cs
- ChildrenQuery.cs
- _AutoWebProxyScriptWrapper.cs
- CharacterHit.cs
- SmuggledIUnknown.cs
- Grant.cs
- EventSource.cs
- MDIClient.cs
- FontDriver.cs
- SchemaElementDecl.cs
- Lasso.cs
- Compilation.cs
- HttpBrowserCapabilitiesBase.cs
- InstanceCreationEditor.cs
- DockingAttribute.cs
- DbException.cs
- TextTreeUndoUnit.cs
- ImageListImage.cs
- PopupEventArgs.cs
- Annotation.cs
- ImplicitInputBrush.cs
- DropDownList.cs
- TransformerConfigurationWizardBase.cs
- RunInstallerAttribute.cs
- RectConverter.cs
- DataErrorValidationRule.cs
- BasicExpressionVisitor.cs
- AssemblyCollection.cs
- PowerStatus.cs
- UserInitiatedRoutedEventPermission.cs
- SmiTypedGetterSetter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- TypeElementCollection.cs
- Quaternion.cs
- TextEncodedRawTextWriter.cs
- TCPClient.cs
- ToolboxItemCollection.cs
- KeyTime.cs
- UdpMessageProperty.cs
- SizeChangedInfo.cs
- TaskFileService.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Debug.cs
- QilTargetType.cs
- DetailsViewUpdateEventArgs.cs
- OleDbMetaDataFactory.cs
- CodeCastExpression.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AuthenticationService.cs
- SortQueryOperator.cs
- DataGridTablesFactory.cs
- MemoryRecordBuffer.cs
- WindowsAuthenticationEventArgs.cs
- ShadowGlyph.cs
- RegistrationServices.cs
- TypeElement.cs
- ValidatingReaderNodeData.cs
- EventDescriptor.cs
- TextServicesCompartment.cs
- NamespaceImport.cs
- ReadOnlyDictionary.cs
- ButtonField.cs
- WindowsToolbarItemAsMenuItem.cs
- IconHelper.cs
- WebHeaderCollection.cs
- precedingsibling.cs
- EventWaitHandle.cs
- Directory.cs
- ManipulationCompletedEventArgs.cs
- UniqueIdentifierService.cs
- RuntimeArgumentHandle.cs
- StandardBindingCollectionElement.cs
- NativeActivity.cs
- AttachmentService.cs
- Activity.cs
- ServiceTimeoutsElement.cs
- SecuritySessionSecurityTokenProvider.cs
- BitmapEncoder.cs
- SqlWriter.cs
- EncoderNLS.cs