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
- FontSourceCollection.cs
- Msmq.cs
- StatusStrip.cs
- FacetValueContainer.cs
- LogRecordSequence.cs
- CapacityStreamGeometryContext.cs
- SimpleFileLog.cs
- DBSqlParser.cs
- DataRowExtensions.cs
- MediaPlayer.cs
- IteratorDescriptor.cs
- MessageDecoder.cs
- HierarchicalDataBoundControlAdapter.cs
- FragmentNavigationEventArgs.cs
- OdbcException.cs
- ScriptRegistrationManager.cs
- SerializationStore.cs
- UnicodeEncoding.cs
- Label.cs
- FixedPageStructure.cs
- SqlDataSourceFilteringEventArgs.cs
- EpmContentDeSerializerBase.cs
- OneOfConst.cs
- TypeConverterHelper.cs
- ResetableIterator.cs
- RelatedCurrencyManager.cs
- ProjectionCamera.cs
- GradientSpreadMethodValidation.cs
- ElementAction.cs
- ExternalException.cs
- Environment.cs
- MoveSizeWinEventHandler.cs
- DataGridPagerStyle.cs
- HttpListenerException.cs
- EntryWrittenEventArgs.cs
- Activity.cs
- EncoderFallback.cs
- SchemaTypeEmitter.cs
- SchemaSetCompiler.cs
- EncoderParameter.cs
- StorageMappingItemLoader.cs
- OleDbEnumerator.cs
- EventLogPermission.cs
- MessageBox.cs
- TokenBasedSet.cs
- EdmToObjectNamespaceMap.cs
- PasswordRecovery.cs
- PropertyGridEditorPart.cs
- X509Certificate2Collection.cs
- SlipBehavior.cs
- RtfNavigator.cs
- BamlLocalizabilityResolver.cs
- NumberFormatInfo.cs
- CanExecuteRoutedEventArgs.cs
- FixedSOMTable.cs
- ObjectRef.cs
- Cell.cs
- GroupBoxAutomationPeer.cs
- FlowDocumentPage.cs
- CodeConstructor.cs
- SchemaImporter.cs
- LocalizableResourceBuilder.cs
- MailDefinition.cs
- ExpressionValueEditor.cs
- XPathNodeHelper.cs
- LocalTransaction.cs
- ListBox.cs
- TokenBasedSet.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- XamlBrushSerializer.cs
- AvTraceDetails.cs
- StatusStrip.cs
- BrowserTree.cs
- RelationshipManager.cs
- LogAppendAsyncResult.cs
- AssemblyBuilder.cs
- AuthorizationRule.cs
- MgmtConfigurationRecord.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ComboBox.cs
- ObfuscationAttribute.cs
- DataBindEngine.cs
- TrackingStringDictionary.cs
- Rotation3D.cs
- ComplexPropertyEntry.cs
- CacheRequest.cs
- DesignTimeParseData.cs
- SafeViewOfFileHandle.cs
- WorkflowValidationFailedException.cs
- Dictionary.cs
- SiteOfOriginPart.cs
- MetabaseServerConfig.cs
- WsdlBuildProvider.cs
- SiteMapNodeCollection.cs
- ForwardPositionQuery.cs
- RegexMatch.cs
- base64Transforms.cs
- EventLogSession.cs
- Configuration.cs
- PointAnimationUsingKeyFrames.cs