Code:
/ 4.0 / 4.0 / untmp / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FullTextState.cs
- ErrorTableItemStyle.cs
- DataColumnPropertyDescriptor.cs
- XmlSchemaProviderAttribute.cs
- CompilerCollection.cs
- MultiplexingFormatMapping.cs
- SettingsPropertyValueCollection.cs
- TextRangeAdaptor.cs
- XmlNavigatorStack.cs
- WindowsFont.cs
- BooleanExpr.cs
- Visual3DCollection.cs
- PkcsMisc.cs
- ObjectDataSourceChooseMethodsPanel.cs
- ValuePattern.cs
- BoolExpressionVisitors.cs
- HostedImpersonationContext.cs
- XhtmlBasicListAdapter.cs
- LayoutEditorPart.cs
- BridgeDataRecord.cs
- FixedSOMLineRanges.cs
- DesignerAttribute.cs
- PageSettings.cs
- DbConnectionOptions.cs
- MissingFieldException.cs
- XmlILStorageConverter.cs
- MgmtResManager.cs
- StoreItemCollection.cs
- HtmlContainerControl.cs
- UrlMappingsSection.cs
- _UriSyntax.cs
- ColorConvertedBitmapExtension.cs
- SharedPerformanceCounter.cs
- Misc.cs
- TargetConverter.cs
- ViewBase.cs
- ObjectStateManagerMetadata.cs
- RoutedPropertyChangedEventArgs.cs
- PageParserFilter.cs
- XmlIgnoreAttribute.cs
- SignatureHelper.cs
- CommandBinding.cs
- IPHostEntry.cs
- TimeoutValidationAttribute.cs
- UnsafeNativeMethods.cs
- CounterNameConverter.cs
- ProxyWebPartConnectionCollection.cs
- HeaderPanel.cs
- FormsIdentity.cs
- SharedStatics.cs
- MultiSelector.cs
- XmlSchemaComplexContentRestriction.cs
- PolicyValidator.cs
- FontStretchConverter.cs
- Misc.cs
- EdmPropertyAttribute.cs
- XamlSerializationHelper.cs
- BindingValueChangedEventArgs.cs
- ScrollPattern.cs
- FileDialog_Vista_Interop.cs
- LinqDataSourceValidationException.cs
- TdsRecordBufferSetter.cs
- HttpContextBase.cs
- ImportContext.cs
- ZipIOExtraField.cs
- SettingsBase.cs
- Label.cs
- LineGeometry.cs
- SimpleWorkerRequest.cs
- MetafileHeaderWmf.cs
- EntityContainerEmitter.cs
- FixedSOMFixedBlock.cs
- RequiredAttributeAttribute.cs
- ExpressionBuilder.cs
- IPAddressCollection.cs
- DataColumnCollection.cs
- FullTextLine.cs
- BaseTemplateBuildProvider.cs
- TableLayoutPanel.cs
- GatewayIPAddressInformationCollection.cs
- SafeWaitHandle.cs
- JavascriptCallbackMessageInspector.cs
- CheckBoxRenderer.cs
- StaticTextPointer.cs
- EntityTemplateUserControl.cs
- WriteStateInfoBase.cs
- RotateTransform3D.cs
- SchemaMapping.cs
- ReferencedAssemblyResolver.cs
- ObjectSet.cs
- ApplicationServiceManager.cs
- LayoutTable.cs
- TreeNode.cs
- NextPreviousPagerField.cs
- _RequestCacheProtocol.cs
- XmlValueConverter.cs
- CategoryAttribute.cs
- IisTraceWebEventProvider.cs
- CounterNameConverter.cs
- DetailsViewInsertEventArgs.cs