Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / MS / Internal / AvTraceFormat.cs / 1 / AvTraceFormat.cs
/****************************************************************************\
*
* File: AvTraceFormat.cs
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
namespace MS.Internal
{
// This class represents the details of a single trace (the ID, a formatted message string, and parameter labels).
// This is used by the AvTrace class and callers.
internal class AvTraceFormat : AvTraceDetails
{
public AvTraceFormat( AvTraceDetails details, object[] args ) : base(details.Id, details.Labels)
{
_message = string.Format(System.Globalization.CultureInfo.InvariantCulture, details.Labels[0], args);
}
// main message (formatted)
public override string Message
{
get
{
return _message;
}
}
string _message;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\
*
* File: AvTraceFormat.cs
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
namespace MS.Internal
{
// This class represents the details of a single trace (the ID, a formatted message string, and parameter labels).
// This is used by the AvTrace class and callers.
internal class AvTraceFormat : AvTraceDetails
{
public AvTraceFormat( AvTraceDetails details, object[] args ) : base(details.Id, details.Labels)
{
_message = string.Format(System.Globalization.CultureInfo.InvariantCulture, details.Labels[0], args);
}
// main message (formatted)
public override string Message
{
get
{
return _message;
}
}
string _message;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputSubmit.cs
- PropertiesTab.cs
- TemplateXamlParser.cs
- Activation.cs
- RegexWorker.cs
- BoundingRectTracker.cs
- XPathItem.cs
- BoundsDrawingContextWalker.cs
- LookupNode.cs
- SystemIPInterfaceProperties.cs
- SpStreamWrapper.cs
- BaseDataList.cs
- DateTimeOffsetConverter.cs
- PrintDialogException.cs
- SchemaImporterExtensionElement.cs
- PathHelper.cs
- VirtualPathUtility.cs
- Currency.cs
- HTMLTextWriter.cs
- ConsumerConnectionPoint.cs
- ContainerAction.cs
- WebException.cs
- ScrollChrome.cs
- RoleService.cs
- TypedReference.cs
- TextSyndicationContentKindHelper.cs
- StaticTextPointer.cs
- DefaultTypeArgumentAttribute.cs
- HttpAsyncResult.cs
- RankException.cs
- ListControlConvertEventArgs.cs
- XmlQueryOutput.cs
- CustomPopupPlacement.cs
- InvalidPipelineStoreException.cs
- WebPartZoneBase.cs
- CollectionViewProxy.cs
- ParameterCollection.cs
- KeyNotFoundException.cs
- ColumnReorderedEventArgs.cs
- SerializationHelper.cs
- HtmlTableCellCollection.cs
- IndexedString.cs
- ResourcesChangeInfo.cs
- DispatcherHooks.cs
- Evaluator.cs
- ExportOptions.cs
- CompositeScriptReference.cs
- CurrentChangingEventManager.cs
- PlatformNotSupportedException.cs
- DataSetUtil.cs
- Configuration.cs
- RSAPKCS1KeyExchangeFormatter.cs
- AssociationTypeEmitter.cs
- LambdaCompiler.Binary.cs
- UrlParameterWriter.cs
- ContextQuery.cs
- KnownTypeDataContractResolver.cs
- DesignerEditorPartChrome.cs
- DBBindings.cs
- BrowserTree.cs
- RemoteX509AsymmetricSecurityKey.cs
- METAHEADER.cs
- WindowVisualStateTracker.cs
- RegexTree.cs
- DataList.cs
- ExpressionPrefixAttribute.cs
- DrawingAttributeSerializer.cs
- FormsAuthenticationUser.cs
- EventSinkHelperWriter.cs
- XPathDocumentBuilder.cs
- Stroke2.cs
- XmlUtil.cs
- SqlServer2KCompatibilityAnnotation.cs
- CellTreeNodeVisitors.cs
- InstanceNormalEvent.cs
- CheckoutException.cs
- Table.cs
- listitem.cs
- ClientBuildManager.cs
- DataGridViewTopLeftHeaderCell.cs
- IPHostEntry.cs
- HttpClientProtocol.cs
- EdmToObjectNamespaceMap.cs
- DaylightTime.cs
- ApplicationBuildProvider.cs
- FaultPropagationRecord.cs
- ObjectHelper.cs
- SqlBulkCopyColumnMappingCollection.cs
- ManagementEventWatcher.cs
- DependencyPropertyAttribute.cs
- PropertyGridEditorPart.cs
- ItemsPanelTemplate.cs
- ComboBox.cs
- AvtEvent.cs
- ScriptControl.cs
- EmptyEnumerable.cs
- CqlLexer.cs
- QuadraticBezierSegment.cs
- AttachmentService.cs
- QilParameter.cs