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
- BufferedWebEventProvider.cs
- XmlSortKeyAccumulator.cs
- BitmapEffect.cs
- StorageTypeMapping.cs
- LineUtil.cs
- SemanticResolver.cs
- WCFServiceClientProxyGenerator.cs
- IPEndPointCollection.cs
- ManualResetEventSlim.cs
- BitmapEffectInput.cs
- QilTargetType.cs
- ColumnClickEvent.cs
- WindowsRebar.cs
- CookielessHelper.cs
- ReceiveSecurityHeader.cs
- EntryPointNotFoundException.cs
- WorkflowEventArgs.cs
- IDReferencePropertyAttribute.cs
- XslNumber.cs
- Rotation3DAnimationBase.cs
- RadioButtonPopupAdapter.cs
- IteratorDescriptor.cs
- Scene3D.cs
- documentsequencetextcontainer.cs
- SafeArrayTypeMismatchException.cs
- Group.cs
- ConnectionConsumerAttribute.cs
- MD5HashHelper.cs
- InlineUIContainer.cs
- SessionPageStateSection.cs
- TypeElementCollection.cs
- DateTimeFormatInfo.cs
- CodeIndexerExpression.cs
- WebColorConverter.cs
- ReadOnlyDataSourceView.cs
- MemberDescriptor.cs
- ColumnBinding.cs
- WebPartMinimizeVerb.cs
- Mouse.cs
- TimeSpanStorage.cs
- FixedSOMGroup.cs
- ArraySortHelper.cs
- XmlSignificantWhitespace.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- UnmanagedMarshal.cs
- DisplayMemberTemplateSelector.cs
- EventLogEntry.cs
- SvcMapFileLoader.cs
- XmlSchemaAll.cs
- IdentityModelStringsVersion1.cs
- NoneExcludedImageIndexConverter.cs
- PocoEntityKeyStrategy.cs
- WebPartVerbCollection.cs
- hresults.cs
- CodeMethodMap.cs
- NullableConverter.cs
- ToolStripArrowRenderEventArgs.cs
- ProjectionPlan.cs
- GridViewRow.cs
- UnsafeNativeMethods.cs
- RewritingProcessor.cs
- IListConverters.cs
- SetterBase.cs
- CookieParameter.cs
- WindowProviderWrapper.cs
- ParallelDesigner.cs
- DispatcherBuilder.cs
- EndOfStreamException.cs
- CriticalExceptions.cs
- ProviderBase.cs
- HideDisabledControlAdapter.cs
- BaseTreeIterator.cs
- TextFormatterImp.cs
- Point3DCollection.cs
- Inline.cs
- TextElementEditingBehaviorAttribute.cs
- ObjectNavigationPropertyMapping.cs
- TraceProvider.cs
- PackageDocument.cs
- PartialClassGenerationTask.cs
- PeerService.cs
- RuntimeConfigLKG.cs
- Parser.cs
- ComponentChangedEvent.cs
- SerialReceived.cs
- Size3D.cs
- StringReader.cs
- PolyLineSegment.cs
- DataGridViewColumn.cs
- WebEvents.cs
- IconConverter.cs
- LinkLabelLinkClickedEvent.cs
- Timer.cs
- RegisteredHiddenField.cs
- SQLGuidStorage.cs
- WebPartEditVerb.cs
- DiagnosticTrace.cs
- CharEnumerator.cs
- Mouse.cs
- JavaScriptObjectDeserializer.cs