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
- Crc32.cs
- RoutedEvent.cs
- Rfc2898DeriveBytes.cs
- HashCryptoHandle.cs
- TreeBuilderBamlTranslator.cs
- LazyLoadBehavior.cs
- ParameterCollection.cs
- RightsManagementEncryptionTransform.cs
- DynamicDiscoSearcher.cs
- TimeEnumHelper.cs
- SchemaReference.cs
- TemplateBamlTreeBuilder.cs
- CancelRequestedRecord.cs
- TableRowGroup.cs
- XmlNavigatorFilter.cs
- XmlSchemaAttributeGroup.cs
- ExpandSegmentCollection.cs
- TypeDelegator.cs
- SurrogateEncoder.cs
- SocketSettings.cs
- CryptoSession.cs
- HttpResponse.cs
- MatrixConverter.cs
- HttpTransportSecurity.cs
- ImageButton.cs
- DbProviderFactory.cs
- DateTimeConverter.cs
- SapiRecoContext.cs
- DockProviderWrapper.cs
- GeometryConverter.cs
- ReadOnlyDataSource.cs
- ChannelSettingsElement.cs
- EventRecord.cs
- HttpCapabilitiesBase.cs
- ProfileManager.cs
- XpsSerializerFactory.cs
- ApplicationActivator.cs
- SplitContainer.cs
- RepeatInfo.cs
- ApplicationActivator.cs
- OciHandle.cs
- MetadataArtifactLoader.cs
- SimpleTextLine.cs
- PolicyImporterElement.cs
- ManifestResourceInfo.cs
- GridViewRowEventArgs.cs
- MainMenu.cs
- RoleManagerModule.cs
- EtwTrace.cs
- DelayedRegex.cs
- ClientSideQueueItem.cs
- Encoding.cs
- Label.cs
- ArgumentDesigner.xaml.cs
- WebPartEditorOkVerb.cs
- HtmlInputControl.cs
- VectorAnimationUsingKeyFrames.cs
- WebPartTransformerAttribute.cs
- ScriptControl.cs
- Int32CAMarshaler.cs
- ActiveDocumentEvent.cs
- SafeNativeMethodsCLR.cs
- HTTPNotFoundHandler.cs
- OleDbCommandBuilder.cs
- ChangePasswordAutoFormat.cs
- PolyBezierSegmentFigureLogic.cs
- DnsPermission.cs
- StsCommunicationException.cs
- PropertyChangeTracker.cs
- LineVisual.cs
- SafeMemoryMappedViewHandle.cs
- MetadataItemCollectionFactory.cs
- SmiTypedGetterSetter.cs
- SqlConnectionString.cs
- IISMapPath.cs
- ComponentEditorForm.cs
- ArgIterator.cs
- InternalBase.cs
- SubMenuStyleCollectionEditor.cs
- BindingCompleteEventArgs.cs
- OleDbConnectionInternal.cs
- SQLBoolean.cs
- VideoDrawing.cs
- QilFactory.cs
- PersistChildrenAttribute.cs
- UpdateManifestForBrowserApplication.cs
- AuthenticationModuleElementCollection.cs
- XmlJsonReader.cs
- D3DImage.cs
- PersonalizationState.cs
- ProcessModuleCollection.cs
- CorrelationTokenTypeConvertor.cs
- PassportPrincipal.cs
- CalendarTable.cs
- Event.cs
- WSHttpBindingBase.cs
- TypeLoadException.cs
- XmlIncludeAttribute.cs
- KeyValuePair.cs
- ControlBuilder.cs