Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ClientUrlResolverWrapper.cs
- TraceSection.cs
- DebuggerAttributes.cs
- Menu.cs
- MachineSettingsSection.cs
- SamlAudienceRestrictionCondition.cs
- SafeSecurityHandles.cs
- DbReferenceCollection.cs
- TableParaClient.cs
- COAUTHINFO.cs
- Matrix3D.cs
- CodeDirectoryCompiler.cs
- ManipulationDeltaEventArgs.cs
- EnumDataContract.cs
- ComboBoxRenderer.cs
- DynamicDataRoute.cs
- HttpModuleCollection.cs
- Utils.cs
- ReferencedCollectionType.cs
- DataProtection.cs
- CharEnumerator.cs
- LabelDesigner.cs
- PerformanceCounterLib.cs
- ScrollChrome.cs
- Funcletizer.cs
- RelationshipConverter.cs
- SecurityDescriptor.cs
- DurableOperationAttribute.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Int16Animation.cs
- WebPartZoneCollection.cs
- _Rfc2616CacheValidators.cs
- DetailsViewUpdatedEventArgs.cs
- WebMessageFormatHelper.cs
- WindowsGrip.cs
- ElementHostAutomationPeer.cs
- PerformanceCounterLib.cs
- Preprocessor.cs
- _UriTypeConverter.cs
- ComAdminWrapper.cs
- DataGridColumnStyleMappingNameEditor.cs
- TextViewSelectionProcessor.cs
- StandardOleMarshalObject.cs
- DynamicILGenerator.cs
- HttpCookieCollection.cs
- BindableTemplateBuilder.cs
- WebBrowserHelper.cs
- ContractSearchPattern.cs
- _FtpControlStream.cs
- WindowsTab.cs
- SecurityUtils.cs
- TypeConverter.cs
- TransformGroup.cs
- cookieexception.cs
- TemplateLookupAction.cs
- CapacityStreamGeometryContext.cs
- WsdlParser.cs
- ScrollPattern.cs
- PeerEndPoint.cs
- LateBoundBitmapDecoder.cs
- Hex.cs
- COSERVERINFO.cs
- ObjectPropertyMapping.cs
- LineInfo.cs
- ListDataHelper.cs
- PrintDocument.cs
- StateRuntime.cs
- DataObjectPastingEventArgs.cs
- TemplateControl.cs
- PopupRoot.cs
- VectorAnimationBase.cs
- LineSegment.cs
- TranslateTransform3D.cs
- IndexOutOfRangeException.cs
- HtmlInputReset.cs
- FlowchartDesigner.xaml.cs
- BatchStream.cs
- AutomationPatternInfo.cs
- SerializationSectionGroup.cs
- GenericEnumerator.cs
- QilGeneratorEnv.cs
- HMAC.cs
- SQLBoolean.cs
- DataSourceControlBuilder.cs
- SocketStream.cs
- TransformDescriptor.cs
- Stacktrace.cs
- TypedRowHandler.cs
- ItemMap.cs
- DurableInstanceProvider.cs
- HtmlControlPersistable.cs
- StorageEntityContainerMapping.cs
- XamlTemplateSerializer.cs
- ColorDialog.cs
- UpdateTracker.cs
- TemplatePartAttribute.cs
- PropagationProtocolsTracing.cs
- Relationship.cs
- SchemaMapping.cs
- DefaultAsyncDataDispatcher.cs