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
- Utilities.cs
- SRef.cs
- TransformPattern.cs
- _SafeNetHandles.cs
- TransformationRules.cs
- ScrollableControl.cs
- ScrollData.cs
- WebPartHeaderCloseVerb.cs
- StringInfo.cs
- AlphabeticalEnumConverter.cs
- AxHostDesigner.cs
- WebPartConnectionsDisconnectVerb.cs
- DrawListViewItemEventArgs.cs
- EntityContainer.cs
- TimeoutValidationAttribute.cs
- AnimationStorage.cs
- FixedDocumentPaginator.cs
- PropertyGridView.cs
- LocatorPartList.cs
- ServiceNameCollection.cs
- SectionXmlInfo.cs
- CreateUserErrorEventArgs.cs
- PartialCachingAttribute.cs
- XsltOutput.cs
- InputLanguageManager.cs
- DrawingContext.cs
- PagesSection.cs
- IntSecurity.cs
- XmlSchemaSimpleTypeList.cs
- FontDialog.cs
- RuntimeHelpers.cs
- IsolatedStorageFile.cs
- UserControl.cs
- SynchronizationContext.cs
- HelpKeywordAttribute.cs
- SafeHandles.cs
- WhitespaceReader.cs
- StrokeDescriptor.cs
- DialogWindow.cs
- CompilationPass2TaskInternal.cs
- CurrencyManager.cs
- ISO2022Encoding.cs
- EntityDataSourceContainerNameItem.cs
- ConvertersCollection.cs
- Dispatcher.cs
- Crc32.cs
- DetailsViewDesigner.cs
- Condition.cs
- EntityContainer.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- TemplateEditingFrame.cs
- UDPClient.cs
- Point3DKeyFrameCollection.cs
- ConcurrentQueue.cs
- Part.cs
- MouseActionValueSerializer.cs
- ValidatorUtils.cs
- CodeMethodInvokeExpression.cs
- SqlNodeAnnotation.cs
- ListItemCollection.cs
- FontFamilyIdentifier.cs
- RepeatBehaviorConverter.cs
- StaticResourceExtension.cs
- Viewport2DVisual3D.cs
- ControlBuilder.cs
- TypeElementCollection.cs
- CroppedBitmap.cs
- XmlArrayAttribute.cs
- Margins.cs
- RangeValueProviderWrapper.cs
- TypeForwardedFromAttribute.cs
- ProxyManager.cs
- TdsParser.cs
- ZeroOpNode.cs
- DataGridState.cs
- XmlSchemaExporter.cs
- XhtmlStyleClass.cs
- cookiecontainer.cs
- PerformanceCountersElement.cs
- xmlNames.cs
- ObjectManager.cs
- HttpServerVarsCollection.cs
- SystemSounds.cs
- ComponentChangedEvent.cs
- SendKeys.cs
- RightNameExpirationInfoPair.cs
- NamedPipeWorkerProcess.cs
- XmlNamedNodeMap.cs
- ReaderOutput.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BamlRecordWriter.cs
- IncrementalCompileAnalyzer.cs
- ConfigurationPropertyAttribute.cs
- RuntimeHandles.cs
- ClientOptions.cs
- COM2PropertyDescriptor.cs
- GC.cs
- BinaryKeyIdentifierClause.cs
- CompositeCollection.cs
- Control.cs