Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ToolboxItemAttribute.cs
- NavigationCommands.cs
- DataGridHeaderBorder.cs
- TextProperties.cs
- ConstraintStruct.cs
- RadioButtonAutomationPeer.cs
- Delay.cs
- XLinq.cs
- DataObjectEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- ManagementExtension.cs
- NotifyParentPropertyAttribute.cs
- OleServicesContext.cs
- PKCS1MaskGenerationMethod.cs
- DataGridViewColumnEventArgs.cs
- BypassElement.cs
- HttpConfigurationContext.cs
- EventTrigger.cs
- DesignTimeVisibleAttribute.cs
- WebCategoryAttribute.cs
- NonPrimarySelectionGlyph.cs
- SendMessageRecord.cs
- Attributes.cs
- TaiwanCalendar.cs
- SqlBooleanizer.cs
- HasCopySemanticsAttribute.cs
- Button.cs
- WebPartTransformerCollection.cs
- FolderLevelBuildProviderCollection.cs
- HandlerWithFactory.cs
- hwndwrapper.cs
- MemberProjectedSlot.cs
- ComponentChangedEvent.cs
- ControlBuilder.cs
- WebErrorHandler.cs
- AccessViolationException.cs
- RequiredFieldValidator.cs
- brushes.cs
- KeySplineConverter.cs
- ThemeConfigurationDialog.cs
- XmlSchemaObject.cs
- GridViewColumnHeader.cs
- EntityDataSourceQueryBuilder.cs
- TemplateField.cs
- XmlObjectSerializerContext.cs
- CodeEntryPointMethod.cs
- PointLightBase.cs
- ToolStripPanel.cs
- AmbientLight.cs
- XamlToRtfWriter.cs
- IImplicitResourceProvider.cs
- DataGridViewRowConverter.cs
- ComPlusTypeLoader.cs
- ByteConverter.cs
- WebPartCatalogAddVerb.cs
- FrameworkTextComposition.cs
- WebPartDisplayMode.cs
- RSACryptoServiceProvider.cs
- PropertyPushdownHelper.cs
- GC.cs
- RegisteredHiddenField.cs
- EntityDesignerDataSourceView.cs
- TabControl.cs
- WebPartDescriptionCollection.cs
- SourceItem.cs
- UseAttributeSetsAction.cs
- Typeface.cs
- PipelineModuleStepContainer.cs
- ExpressionBuilderContext.cs
- SQLBoolean.cs
- MdImport.cs
- TagMapCollection.cs
- TransactedBatchingElement.cs
- SendActivityDesignerTheme.cs
- SymbolMethod.cs
- HttpHandlersSection.cs
- AdjustableArrowCap.cs
- LicenseContext.cs
- ResourceDefaultValueAttribute.cs
- xdrvalidator.cs
- X509CertificateValidator.cs
- VerificationAttribute.cs
- AddIn.cs
- InheritanceAttribute.cs
- DocumentSignatureManager.cs
- SystemBrushes.cs
- PropertyInformation.cs
- AccessText.cs
- SimpleWebHandlerParser.cs
- BaseTreeIterator.cs
- CodeNamespaceImport.cs
- WmpBitmapEncoder.cs
- BitHelper.cs
- DotExpr.cs
- PointAnimation.cs
- PerformanceCounterPermission.cs
- DataPagerFieldCollection.cs
- UnmanagedMarshal.cs
- PasswordTextNavigator.cs
- LayoutSettings.cs