Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlMembersMapping.cs / 1305376 / 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
- COAUTHIDENTITY.cs
- EncoderReplacementFallback.cs
- PlatformNotSupportedException.cs
- EventLogHandle.cs
- HtmlInputButton.cs
- RuleRefElement.cs
- CallbackValidator.cs
- NullableFloatAverageAggregationOperator.cs
- SystemPens.cs
- EmptyStringExpandableObjectConverter.cs
- DynamicResourceExtensionConverter.cs
- RegexCharClass.cs
- ManifestResourceInfo.cs
- Parser.cs
- InputGestureCollection.cs
- ListViewInsertEventArgs.cs
- RealProxy.cs
- StylusPoint.cs
- UnsafeNetInfoNativeMethods.cs
- ResourceExpressionBuilder.cs
- Pair.cs
- WindowsComboBox.cs
- SelectionItemProviderWrapper.cs
- KeyboardEventArgs.cs
- NativeMethods.cs
- DragDropManager.cs
- DataGridRowAutomationPeer.cs
- EventProxy.cs
- GridPatternIdentifiers.cs
- SqlPersonalizationProvider.cs
- MultiBindingExpression.cs
- InkCanvasAutomationPeer.cs
- GridLength.cs
- HMACSHA512.cs
- BackgroundFormatInfo.cs
- HandlerWithFactory.cs
- ServiceErrorHandler.cs
- HyperLinkField.cs
- DataGridRelationshipRow.cs
- URLAttribute.cs
- XPathQilFactory.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DeclarationUpdate.cs
- SymLanguageVendor.cs
- DefaultBindingPropertyAttribute.cs
- SmtpCommands.cs
- CharacterMetricsDictionary.cs
- NumericPagerField.cs
- PropertyStore.cs
- LeafCellTreeNode.cs
- IPipelineRuntime.cs
- CapiSymmetricAlgorithm.cs
- UriExt.cs
- HttpRequest.cs
- SEHException.cs
- HtmlToClrEventProxy.cs
- ColorKeyFrameCollection.cs
- EventSetterHandlerConverter.cs
- AuthenticationSection.cs
- BitStack.cs
- SoapAttributes.cs
- SafeTokenHandle.cs
- RadioButtonList.cs
- ContentOperations.cs
- DataGridViewComboBoxColumnDesigner.cs
- CodeRemoveEventStatement.cs
- SamlAuthenticationStatement.cs
- EmbossBitmapEffect.cs
- DesignerActionHeaderItem.cs
- NotCondition.cs
- ContextQuery.cs
- PopOutPanel.cs
- XPathNodePointer.cs
- StylusButtonEventArgs.cs
- EmptyEnumerator.cs
- BinaryConverter.cs
- SendMailErrorEventArgs.cs
- DbConnectionPoolGroupProviderInfo.cs
- AutoResetEvent.cs
- DaylightTime.cs
- EntityContainer.cs
- CustomCategoryAttribute.cs
- AdornerDecorator.cs
- ForceCopyBuildProvider.cs
- ExpressionVisitor.cs
- EntityDesignerDataSourceView.cs
- GPRECT.cs
- OdbcHandle.cs
- WebPart.cs
- BypassElementCollection.cs
- ProfileModule.cs
- FormsAuthenticationCredentials.cs
- DataGridItemEventArgs.cs
- ZipIOLocalFileBlock.cs
- ClientFormsAuthenticationMembershipProvider.cs
- AdditionalEntityFunctions.cs
- Span.cs
- WorkflowPersistenceService.cs
- Cursor.cs
- TextRenderer.cs