Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IndexingContentUnit.cs
- ProviderConnectionPoint.cs
- ColorComboBox.cs
- CodeExpressionStatement.cs
- GroupBoxRenderer.cs
- OverflowException.cs
- ObjectResult.cs
- wgx_commands.cs
- IHttpResponseInternal.cs
- HierarchicalDataBoundControl.cs
- ToolStripSeparatorRenderEventArgs.cs
- ToolStripSystemRenderer.cs
- KeyEvent.cs
- InitializerFacet.cs
- MessageBox.cs
- ObjectListField.cs
- XmlRawWriter.cs
- NativeMethodsOther.cs
- SmiGettersStream.cs
- GetPageNumberCompletedEventArgs.cs
- AdornerDecorator.cs
- PolicyException.cs
- PkcsMisc.cs
- DataControlButton.cs
- remotingproxy.cs
- RowToParametersTransformer.cs
- OpenTypeLayout.cs
- StatusBarDrawItemEvent.cs
- Point3D.cs
- CompatibleComparer.cs
- HostedTransportConfigurationManager.cs
- SessionStateSection.cs
- SecurityKeyUsage.cs
- HttpProfileGroupBase.cs
- FormatException.cs
- ControlEvent.cs
- XPathSingletonIterator.cs
- PolyBezierSegment.cs
- BinaryFormatterWriter.cs
- EntryPointNotFoundException.cs
- ForeignKeyConstraint.cs
- ExpressionsCollectionConverter.cs
- WindowsStatic.cs
- PopupRoot.cs
- ClrProviderManifest.cs
- CompilerLocalReference.cs
- DataGridViewHeaderCell.cs
- SByte.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RepeaterItemEventArgs.cs
- GZipDecoder.cs
- InternalControlCollection.cs
- TextAnchor.cs
- TypeHelpers.cs
- SimpleExpression.cs
- SettingsContext.cs
- UserValidatedEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- CrossSiteScriptingValidation.cs
- EnumerableRowCollection.cs
- FileEnumerator.cs
- PrtCap_Base.cs
- FormViewUpdatedEventArgs.cs
- SimpleApplicationHost.cs
- ExpressionPrefixAttribute.cs
- DeploymentSection.cs
- UnsafeNativeMethods.cs
- QilCloneVisitor.cs
- SQLDateTimeStorage.cs
- UpDownEvent.cs
- TabRenderer.cs
- MethodCallExpression.cs
- AssociationSet.cs
- HttpInputStream.cs
- ThrowHelper.cs
- DataAdapter.cs
- WindowsAuthenticationModule.cs
- InternalCompensate.cs
- BufferModeSettings.cs
- BitmapEffectGeneralTransform.cs
- X509AsymmetricSecurityKey.cs
- OleDbRowUpdatingEvent.cs
- ExpandedWrapper.cs
- ProtocolsConfigurationEntry.cs
- XmlSchemaExporter.cs
- MaskedTextProvider.cs
- RightsManagementInformation.cs
- GPPOINTF.cs
- DropShadowBitmapEffect.cs
- CorePropertiesFilter.cs
- GenericEnumConverter.cs
- ButtonBaseAutomationPeer.cs
- RawKeyboardInputReport.cs
- WinInet.cs
- SharedUtils.cs
- WindowClosedEventArgs.cs
- PrintDocument.cs
- ReadContentAsBinaryHelper.cs
- ChangeNode.cs
- ScrollContentPresenter.cs