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
- SchemaNamespaceManager.cs
- SafeProcessHandle.cs
- GridViewSelectEventArgs.cs
- TraceHandlerErrorFormatter.cs
- assertwrapper.cs
- SecurityException.cs
- DataGridViewCellConverter.cs
- ConnectionPoolManager.cs
- JoinQueryOperator.cs
- SrgsOneOf.cs
- XmlException.cs
- XmlSchemaInfo.cs
- PartialArray.cs
- Pair.cs
- Adorner.cs
- ComboBoxAutomationPeer.cs
- BindingExpression.cs
- Serializer.cs
- PresentationAppDomainManager.cs
- SectionUpdates.cs
- SrgsDocumentParser.cs
- ClockGroup.cs
- Version.cs
- CodeDOMProvider.cs
- TextSchema.cs
- XmlBoundElement.cs
- COM2ColorConverter.cs
- OutOfProcStateClientManager.cs
- SwitchLevelAttribute.cs
- AppDomainAttributes.cs
- ColorPalette.cs
- MessageContractExporter.cs
- UserNameServiceElement.cs
- LambdaSerializationException.cs
- ItemsPresenter.cs
- AddInServer.cs
- CalendarAutoFormatDialog.cs
- DateTimeFormatInfoScanner.cs
- MobileControlsSectionHelper.cs
- DataReaderContainer.cs
- Certificate.cs
- ManagedFilter.cs
- DataPagerFieldCollection.cs
- MissingFieldException.cs
- SafeFindHandle.cs
- ZoomComboBox.cs
- CustomCategoryAttribute.cs
- XmlMtomReader.cs
- QilInvokeLateBound.cs
- StrongNameMembershipCondition.cs
- DiagnosticsConfiguration.cs
- ClientApiGenerator.cs
- SynchronizationLockException.cs
- XmlDictionaryReader.cs
- HttpProtocolImporter.cs
- oledbmetadatacolumnnames.cs
- ProfileModule.cs
- ActivityTrace.cs
- GrowingArray.cs
- IISMapPath.cs
- SqlUDTStorage.cs
- XmlReflectionImporter.cs
- BasePattern.cs
- DesignerTransactionCloseEvent.cs
- TextWriter.cs
- _CookieModule.cs
- DataControlFieldCollection.cs
- OutputCacheSettingsSection.cs
- SecurityCookieModeValidator.cs
- PrePrepareMethodAttribute.cs
- ActiveDocumentEvent.cs
- WindowsStatic.cs
- DataGridViewButtonColumn.cs
- SmiRecordBuffer.cs
- TaiwanCalendar.cs
- Stackframe.cs
- UserNameSecurityTokenParameters.cs
- ExpressionDumper.cs
- DataGridRowDetailsEventArgs.cs
- AttributeInfo.cs
- QuotedStringWriteStateInfo.cs
- ElementInit.cs
- ColumnMapCopier.cs
- DateTimeFormat.cs
- ContentIterators.cs
- ScopelessEnumAttribute.cs
- UpdateDelegates.Generated.cs
- Base64Decoder.cs
- PngBitmapDecoder.cs
- TimeoutHelper.cs
- WebServiceParameterData.cs
- DataGridColumnCollection.cs
- SystemTcpStatistics.cs
- RectangleGeometry.cs
- SymbolTable.cs
- AttachedAnnotation.cs
- PathFigure.cs
- FormatterConverter.cs
- ExtentCqlBlock.cs
- ScalarType.cs