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 / XmlMembersMapping.cs / 1 / XmlMembersMapping.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System; using System.Text; ////// /// /// public class XmlMembersMapping : XmlMapping { XmlMemberMapping[] mappings; internal XmlMembersMapping(TypeScope scope, ElementAccessor accessor, XmlMappingAccess access) : base(scope, accessor, access) { MembersMapping mapping = (MembersMapping)accessor.Mapping; StringBuilder key = new StringBuilder(); key.Append(":"); mappings = new XmlMemberMapping[mapping.Members.Length]; for (int i = 0; i < mappings.Length; i++) { if (mapping.Members[i].TypeDesc.Type != null) { key.Append(GenerateKey(mapping.Members[i].TypeDesc.Type, null, null)); key.Append(":"); } mappings[i] = new XmlMemberMapping(mapping.Members[i]); } SetKeyInternal(key.ToString()); } ///[To be supplied.] ////// /// public string TypeName { get { return Accessor.Mapping.TypeName; } } ///[To be supplied.] ////// /// public string TypeNamespace { get { return Accessor.Mapping.Namespace; } } ///[To be supplied.] ////// /// public XmlMemberMapping this[int index] { get { return mappings[index]; } } ///[To be supplied.] ////// /// public int Count { get { return mappings.Length; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System; using System.Text; ////// /// /// public class XmlMembersMapping : XmlMapping { XmlMemberMapping[] mappings; internal XmlMembersMapping(TypeScope scope, ElementAccessor accessor, XmlMappingAccess access) : base(scope, accessor, access) { MembersMapping mapping = (MembersMapping)accessor.Mapping; StringBuilder key = new StringBuilder(); key.Append(":"); mappings = new XmlMemberMapping[mapping.Members.Length]; for (int i = 0; i < mappings.Length; i++) { if (mapping.Members[i].TypeDesc.Type != null) { key.Append(GenerateKey(mapping.Members[i].TypeDesc.Type, null, null)); key.Append(":"); } mappings[i] = new XmlMemberMapping(mapping.Members[i]); } SetKeyInternal(key.ToString()); } ///[To be supplied.] ////// /// public string TypeName { get { return Accessor.Mapping.TypeName; } } ///[To be supplied.] ////// /// public string TypeNamespace { get { return Accessor.Mapping.Namespace; } } ///[To be supplied.] ////// /// public XmlMemberMapping this[int index] { get { return mappings[index]; } } ///[To be supplied.] ////// /// public int Count { get { return mappings.Length; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputScope.cs
- XmlIgnoreAttribute.cs
- DocumentDesigner.cs
- ZipIOLocalFileHeader.cs
- XmlnsCompatibleWithAttribute.cs
- ProcessHostFactoryHelper.cs
- XPathScanner.cs
- SoapHeaderAttribute.cs
- ComEventsInfo.cs
- Composition.cs
- ImageCodecInfo.cs
- ArraySet.cs
- BitmapFrame.cs
- XmlSchemaParticle.cs
- GB18030Encoding.cs
- DependencySource.cs
- SortKey.cs
- WorkflowRuntimeService.cs
- ObjectStateFormatter.cs
- RuntimeCompatibilityAttribute.cs
- AttachmentService.cs
- Triangle.cs
- EntityPropertyMappingAttribute.cs
- DelegatingConfigHost.cs
- PeerContact.cs
- TemplateApplicationHelper.cs
- Attributes.cs
- Drawing.cs
- RowVisual.cs
- ServiceTimeoutsBehavior.cs
- AmbientValueAttribute.cs
- TypographyProperties.cs
- FontCacheLogic.cs
- StylusCollection.cs
- OdbcConnectionStringbuilder.cs
- ProcessModelSection.cs
- XmlSchemaInfo.cs
- TextChange.cs
- ObjectComplexPropertyMapping.cs
- RoleManagerSection.cs
- Int64Storage.cs
- StringReader.cs
- MoveSizeWinEventHandler.cs
- MessageQueuePermissionEntry.cs
- InvalidDataContractException.cs
- EditorBrowsableAttribute.cs
- HtmlGenericControl.cs
- SevenBitStream.cs
- ExceptionUtil.cs
- XmlSchemaImporter.cs
- SqlConnectionPoolProviderInfo.cs
- TrackingQueryElement.cs
- Positioning.cs
- PropertyTabAttribute.cs
- XpsFixedDocumentReaderWriter.cs
- XmlWhitespace.cs
- XamlBuildProvider.cs
- PriorityChain.cs
- OrderedDictionary.cs
- OrthographicCamera.cs
- BStrWrapper.cs
- DesignConnection.cs
- EntityDataReader.cs
- XNameConverter.cs
- StrokeNode.cs
- HighlightComponent.cs
- MetadataArtifactLoaderFile.cs
- UnsafeNativeMethods.cs
- ContentValidator.cs
- DataViewManager.cs
- WebConfigurationHostFileChange.cs
- ToolboxItem.cs
- ToolBarButton.cs
- CompositionAdorner.cs
- DesignerSerializationOptionsAttribute.cs
- OwnerDrawPropertyBag.cs
- LoginName.cs
- CodeDOMUtility.cs
- Messages.cs
- ResourceAttributes.cs
- ClientSettingsSection.cs
- FullTrustAssembliesSection.cs
- XDeferredAxisSource.cs
- Symbol.cs
- FlagsAttribute.cs
- BindingCollection.cs
- XmlQueryCardinality.cs
- Utils.cs
- TransactionManagerProxy.cs
- Ref.cs
- RefreshEventArgs.cs
- URL.cs
- StorageAssociationTypeMapping.cs
- DataGridTableCollection.cs
- ApplicationActivator.cs
- BaseDataBoundControl.cs
- SessionChannels.cs
- AttributeEmitter.cs
- DesignerView.Commands.cs
- WMIInterop.cs