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
- RegionInfo.cs
- Run.cs
- RegistrationServices.cs
- InputProviderSite.cs
- DataGridColumnReorderingEventArgs.cs
- SystemResourceHost.cs
- DefaultTraceListener.cs
- Range.cs
- DesignerHelpers.cs
- SpeechSynthesizer.cs
- ApplicationException.cs
- StringDictionary.cs
- login.cs
- List.cs
- StateMachineSubscription.cs
- Region.cs
- KeyedQueue.cs
- InterleavedZipPartStream.cs
- DBBindings.cs
- ValidationEventArgs.cs
- DependencyPropertyAttribute.cs
- AuthorizationPolicyTypeElement.cs
- Exceptions.cs
- AnimationTimeline.cs
- FlowPosition.cs
- Base64Decoder.cs
- SoundPlayer.cs
- BoundsDrawingContextWalker.cs
- TextTreeFixupNode.cs
- XPathDescendantIterator.cs
- WebPartEditorOkVerb.cs
- XmlSchemaValidationException.cs
- XmlCharCheckingWriter.cs
- SQLInt16Storage.cs
- ExpandButtonVisibilityConverter.cs
- FontDriver.cs
- SmtpFailedRecipientException.cs
- QueryOutputWriter.cs
- CalendarDay.cs
- AttachmentCollection.cs
- RadioButton.cs
- XmlSerializerSection.cs
- HiddenFieldPageStatePersister.cs
- SqlDuplicator.cs
- SpellerHighlightLayer.cs
- LinkedResourceCollection.cs
- DataGridViewCellValidatingEventArgs.cs
- FormatterServicesNoSerializableCheck.cs
- ISAPIRuntime.cs
- TypefaceMetricsCache.cs
- AQNBuilder.cs
- Expressions.cs
- NavigationProgressEventArgs.cs
- cookie.cs
- DBDataPermission.cs
- StyleSelector.cs
- FindProgressChangedEventArgs.cs
- PolyLineSegment.cs
- XmlCustomFormatter.cs
- XmlKeywords.cs
- RenderContext.cs
- DocComment.cs
- DataRowComparer.cs
- ItemContainerGenerator.cs
- SchemaType.cs
- OutputCacheProfileCollection.cs
- DirectoryInfo.cs
- CodeVariableDeclarationStatement.cs
- LocalizabilityAttribute.cs
- PreProcessor.cs
- DockPatternIdentifiers.cs
- CodeDOMProvider.cs
- TdsParserSafeHandles.cs
- FormView.cs
- SafeHandle.cs
- XmlSchemaSequence.cs
- FileDialogPermission.cs
- CodeIndexerExpression.cs
- InputBinding.cs
- HTMLTextWriter.cs
- Trustee.cs
- PasswordBox.cs
- KeysConverter.cs
- ObjectTag.cs
- ResourceExpression.cs
- PropertyDescriptor.cs
- ColorKeyFrameCollection.cs
- HScrollBar.cs
- Attributes.cs
- Point4DValueSerializer.cs
- ConfigXmlComment.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ToolboxComponentsCreatingEventArgs.cs
- EntityChangedParams.cs
- MimeBasePart.cs
- _BasicClient.cs
- ListViewPagedDataSource.cs
- Set.cs
- EDesignUtil.cs
- TreeViewItemAutomationPeer.cs