Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / Diagnostics / DictionaryTraceRecord.cs / 1305376 / DictionaryTraceRecord.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Diagnostics { using System.Xml; using System.Collections; class DictionaryTraceRecord : TraceRecord { IDictionary dictionary; internal DictionaryTraceRecord(IDictionary dictionary) { this.dictionary = dictionary; } internal override string EventId { get { return TraceRecord.EventIdBase + "Dictionary" + TraceRecord.NamespaceSuffix; } } internal override void WriteTo(XmlWriter xml) { if (this.dictionary != null) { foreach (object key in this.dictionary.Keys) { object value = this.dictionary[key]; xml.WriteElementString(key.ToString(), value == null ? string.Empty : value.ToString()); } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootBuilder.cs
- XmlChildNodes.cs
- BaseParaClient.cs
- ObjectDataSourceMethodEventArgs.cs
- ServiceBusyException.cs
- SqlInternalConnection.cs
- GlobalEventManager.cs
- ColumnHeaderConverter.cs
- SqlCacheDependency.cs
- ImageEditor.cs
- SvcMapFile.cs
- MimeTextImporter.cs
- MappingItemCollection.cs
- HtmlWindowCollection.cs
- SelectionRangeConverter.cs
- RadioButton.cs
- DbParameterCollectionHelper.cs
- DbProviderFactoriesConfigurationHandler.cs
- FormParameter.cs
- ObjectStateManagerMetadata.cs
- AdvancedBindingEditor.cs
- IPPacketInformation.cs
- OleDbFactory.cs
- ToggleButtonAutomationPeer.cs
- MediaEntryAttribute.cs
- RegisteredArrayDeclaration.cs
- ActivityFunc.cs
- XmlSchemaInfo.cs
- PersonalizationProviderHelper.cs
- SamlAuthenticationClaimResource.cs
- oledbconnectionstring.cs
- FontUnit.cs
- TagPrefixInfo.cs
- SafeBitVector32.cs
- TimeEnumHelper.cs
- SystemKeyConverter.cs
- SafeBitVector32.cs
- FileInfo.cs
- GridViewRowPresenterBase.cs
- DecoratedNameAttribute.cs
- EventRoute.cs
- EdmComplexTypeAttribute.cs
- DataViewManager.cs
- Int32Collection.cs
- AudioDeviceOut.cs
- SocketInformation.cs
- JoinTreeSlot.cs
- SecurityTokenValidationException.cs
- FlowPosition.cs
- NavigationFailedEventArgs.cs
- PersistenceParticipant.cs
- DesignTableCollection.cs
- PieceNameHelper.cs
- FacetChecker.cs
- EventLogWatcher.cs
- RepeaterItemEventArgs.cs
- ResourceDescriptionAttribute.cs
- StrongNameIdentityPermission.cs
- Wildcard.cs
- NullableIntAverageAggregationOperator.cs
- StretchValidation.cs
- ManipulationStartedEventArgs.cs
- AvTraceFormat.cs
- EntityDataSourceState.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- DispatcherProcessingDisabled.cs
- ColumnWidthChangingEvent.cs
- SafeSecurityHandles.cs
- UIElementHelper.cs
- ServerValidateEventArgs.cs
- HttpCacheParams.cs
- BindingMAnagerBase.cs
- oledbconnectionstring.cs
- DockPattern.cs
- MonthChangedEventArgs.cs
- CompilationRelaxations.cs
- HandledEventArgs.cs
- userdatakeys.cs
- AnimationException.cs
- XmlTextAttribute.cs
- BindingContext.cs
- CopyNamespacesAction.cs
- InternalsVisibleToAttribute.cs
- InputScopeNameConverter.cs
- Pair.cs
- ItemsControlAutomationPeer.cs
- ServiceRouteHandler.cs
- securitycriticaldataClass.cs
- Compiler.cs
- ContextMenuStripGroupCollection.cs
- StringToken.cs
- SafeCoTaskMem.cs
- VirtualDirectoryMappingCollection.cs
- UnsettableComboBox.cs
- TreeNodeCollection.cs
- Point4D.cs
- SrgsGrammarCompiler.cs
- SoapSchemaMember.cs
- MessageQuerySet.cs
- XmlSchemaSequence.cs