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
- RoleGroupCollection.cs
- DataProtection.cs
- XAMLParseException.cs
- input.cs
- RepeaterDesigner.cs
- Query.cs
- PathParser.cs
- ColumnHeader.cs
- Error.cs
- ImageIndexConverter.cs
- SoapObjectReader.cs
- Point.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolStripComboBox.cs
- IteratorAsyncResult.cs
- DbConnectionPoolIdentity.cs
- VirtualDirectoryMappingCollection.cs
- AxisAngleRotation3D.cs
- UrlAuthorizationModule.cs
- XslNumber.cs
- FocusManager.cs
- Inline.cs
- SecurityCriticalDataForSet.cs
- PerSessionInstanceContextProvider.cs
- SmtpTransport.cs
- CmsInterop.cs
- DetailsViewDeleteEventArgs.cs
- FormViewInsertedEventArgs.cs
- XmlSchemaType.cs
- TopClause.cs
- ObjectView.cs
- VerticalAlignConverter.cs
- HtmlTableRow.cs
- Rule.cs
- HttpCapabilitiesEvaluator.cs
- DataTransferEventArgs.cs
- Size3D.cs
- ResourceReader.cs
- InputLangChangeRequestEvent.cs
- XmlSubtreeReader.cs
- LookupNode.cs
- Drawing.cs
- Pointer.cs
- PageAsyncTaskManager.cs
- AbstractDataSvcMapFileLoader.cs
- CompiledQuery.cs
- SmtpTransport.cs
- SurrogateSelector.cs
- NativeMethods.cs
- MatrixUtil.cs
- MetaTableHelper.cs
- Baml2006Reader.cs
- TouchesOverProperty.cs
- Mutex.cs
- NextPreviousPagerField.cs
- ScopelessEnumAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- AnimationClock.cs
- SQLMoney.cs
- ChildDocumentBlock.cs
- CapabilitiesRule.cs
- ServiceHostingEnvironment.cs
- TcpServerChannel.cs
- PageResolution.cs
- DefaultParameterValueAttribute.cs
- MediaPlayer.cs
- SessionEndedEventArgs.cs
- WebPartHeaderCloseVerb.cs
- ValuePatternIdentifiers.cs
- MeshGeometry3D.cs
- SvcFileManager.cs
- HwndHost.cs
- PrivilegedConfigurationManager.cs
- PeerNearMe.cs
- OrthographicCamera.cs
- DictionaryEntry.cs
- ProjectionRewriter.cs
- WorkflowView.cs
- BoolExpressionVisitors.cs
- SessionEndingCancelEventArgs.cs
- RightsManagementEncryptionTransform.cs
- ArgIterator.cs
- MdImport.cs
- PrimitiveCodeDomSerializer.cs
- RadioButton.cs
- SoapAttributes.cs
- NullRuntimeConfig.cs
- SqlTrackingService.cs
- XslCompiledTransform.cs
- FormCollection.cs
- ObjectListCommandsPage.cs
- PKCS1MaskGenerationMethod.cs
- RuntimeHandles.cs
- AssociationTypeEmitter.cs
- CookieParameter.cs
- XmlSchemaAnyAttribute.cs
- OleDbFactory.cs
- VersionPair.cs
- FontStyles.cs
- RowToParametersTransformer.cs