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
- Int32.cs
- StringValueConverter.cs
- WindowClosedEventArgs.cs
- BaseCodePageEncoding.cs
- MaskInputRejectedEventArgs.cs
- FixUp.cs
- SymbolType.cs
- StagingAreaInputItem.cs
- ProviderException.cs
- PerfCounterSection.cs
- TypeConverterHelper.cs
- XmlSiteMapProvider.cs
- DataBindEngine.cs
- Nodes.cs
- XmlAutoDetectWriter.cs
- MethodRental.cs
- HostSecurityManager.cs
- QilLiteral.cs
- WebHttpBindingElement.cs
- SafeHandles.cs
- NumericExpr.cs
- oledbmetadatacollectionnames.cs
- sqlser.cs
- TypeDescriptorContext.cs
- HttpClientCertificate.cs
- GridViewColumnHeader.cs
- SQLMembershipProvider.cs
- TdsParameterSetter.cs
- LocalIdKeyIdentifierClause.cs
- Overlapped.cs
- XmlHierarchicalEnumerable.cs
- DiscoveryInnerClientManaged11.cs
- Binding.cs
- WindowsIdentity.cs
- Baml2006ReaderFrame.cs
- BindingsCollection.cs
- TemplateBaseAction.cs
- BitmapMetadata.cs
- BezierSegment.cs
- PoisonMessageException.cs
- PartialCachingAttribute.cs
- Context.cs
- _ScatterGatherBuffers.cs
- DiscoveryMessageSequence.cs
- NetworkInformationException.cs
- SchemaNames.cs
- EndEvent.cs
- OleDbRowUpdatingEvent.cs
- BitmapEffectInputData.cs
- SerialErrors.cs
- MulticastDelegate.cs
- MappingSource.cs
- ProvideValueServiceProvider.cs
- JournalNavigationScope.cs
- WebBrowserUriTypeConverter.cs
- SqlProviderManifest.cs
- FileClassifier.cs
- SystemWebExtensionsSectionGroup.cs
- IISMapPath.cs
- ValidatingReaderNodeData.cs
- MultiDataTrigger.cs
- DateTimeSerializationSection.cs
- M3DUtil.cs
- CleanUpVirtualizedItemEventArgs.cs
- Tuple.cs
- InstanceCreationEditor.cs
- ClientConfigurationSystem.cs
- TreeNodeSelectionProcessor.cs
- XmlArrayItemAttributes.cs
- StructureChangedEventArgs.cs
- ErrorInfoXmlDocument.cs
- KeyInstance.cs
- CreateUserWizardDesigner.cs
- ToolStripGrip.cs
- ConditionalAttribute.cs
- TypeGeneratedEventArgs.cs
- ArrayWithOffset.cs
- SatelliteContractVersionAttribute.cs
- BufferModeSettings.cs
- DependsOnAttribute.cs
- MemoryFailPoint.cs
- SudsCommon.cs
- dtdvalidator.cs
- LambdaReference.cs
- JsonFaultDetail.cs
- ProfileService.cs
- DiagnosticSection.cs
- InlineCollection.cs
- WebPartDisplayModeCollection.cs
- ByteStream.cs
- QuaternionIndependentAnimationStorage.cs
- ConditionalAttribute.cs
- ExceptionHandler.cs
- WindowsComboBox.cs
- TableProviderWrapper.cs
- XmlValidatingReaderImpl.cs
- RootDesignerSerializerAttribute.cs
- Tablet.cs
- PerformanceCounterPermissionEntryCollection.cs
- JsonSerializer.cs