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
- SynchronousChannel.cs
- WebHttpEndpointElement.cs
- XmlCompatibilityReader.cs
- LineServicesCallbacks.cs
- GenericXmlSecurityToken.cs
- SqlClientFactory.cs
- MetabaseSettings.cs
- CollectionType.cs
- XmlTextWriter.cs
- OperationResponse.cs
- TraceData.cs
- CheckableControlBaseAdapter.cs
- ScaleTransform3D.cs
- SecurityKeyType.cs
- Model3DCollection.cs
- BaseTemplateParser.cs
- TextShapeableCharacters.cs
- TreeNodeCollection.cs
- Track.cs
- ByteArrayHelperWithString.cs
- Header.cs
- AbstractExpressions.cs
- ExpressionLexer.cs
- InvokeBinder.cs
- HostProtectionException.cs
- SingleKeyFrameCollection.cs
- MultiTrigger.cs
- RequestBringIntoViewEventArgs.cs
- AssemblyResourceLoader.cs
- ActivityExecutorOperation.cs
- listviewsubitemcollectioneditor.cs
- MenuItemStyle.cs
- DelegatingConfigHost.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlReader.cs
- ConnectionStringSettings.cs
- DeleteIndexBinder.cs
- StreamAsIStream.cs
- TransactionScope.cs
- TraceSection.cs
- TransactionTraceIdentifier.cs
- Hash.cs
- XmlIlTypeHelper.cs
- PointCollection.cs
- TableAdapterManagerHelper.cs
- SoapElementAttribute.cs
- CreateDataSourceDialog.cs
- StrokeNodeOperations2.cs
- Visual3DCollection.cs
- TypeSystemHelpers.cs
- XmlHierarchicalDataSourceView.cs
- BindingCollection.cs
- WebAdminConfigurationHelper.cs
- ExtensionSurface.cs
- MenuTracker.cs
- NullableConverter.cs
- Error.cs
- OleDbRowUpdatedEvent.cs
- CompiledWorkflowDefinitionContext.cs
- QilFactory.cs
- PlainXmlSerializer.cs
- PreApplicationStartMethodAttribute.cs
- HelpKeywordAttribute.cs
- OutArgument.cs
- TypeToStringValueConverter.cs
- FileChangesMonitor.cs
- ADMembershipProvider.cs
- EncryptedKeyHashIdentifierClause.cs
- ViewCellSlot.cs
- StateRuntime.cs
- BreakRecordTable.cs
- XmlSchemaAll.cs
- ScriptControlManager.cs
- X509Utils.cs
- CellRelation.cs
- VerticalAlignConverter.cs
- CodeMemberMethod.cs
- WindowInteropHelper.cs
- ExtendedProtectionPolicyTypeConverter.cs
- StyleHelper.cs
- Peer.cs
- DiagnosticTrace.cs
- NativeMethodsOther.cs
- SessionStateItemCollection.cs
- ScriptComponentDescriptor.cs
- CustomGrammar.cs
- JoinSymbol.cs
- SecurityTokenResolver.cs
- DesigntimeLicenseContextSerializer.cs
- HiddenFieldPageStatePersister.cs
- Point3DCollectionValueSerializer.cs
- SizeKeyFrameCollection.cs
- SafeNativeMemoryHandle.cs
- ListViewCancelEventArgs.cs
- BackStopAuthenticationModule.cs
- ConnectionManagementElement.cs
- CursorInteropHelper.cs
- PlacementWorkspace.cs
- NullReferenceException.cs
- EdmProperty.cs