| File: Logging\BinaryLogger\Postprocessing\StringReadEventArgs.cs | Web Access |
| Project: src\msbuild\src\Build\Microsoft.Build.csproj (Microsoft.Build) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace Microsoft.Build.Logging { /// <summary> /// An event args for <see cref="IBuildEventArgsReaderNotifications.StringReadDone"/> callback. /// </summary> public sealed class StringReadEventArgs : EventArgs { /// <summary> /// The original string that was read from the binary log. /// </summary> public string OriginalString { get; private set; } /// <summary> /// The adjusted string (or the original string of none subscriber replaced it) that will be used by the reader. /// </summary> public string StringToBeUsed { get; set; } public StringReadEventArgs(string str) { OriginalString = str; StringToBeUsed = str; } internal void Reuse(string newValue) { OriginalString = newValue; StringToBeUsed = newValue; } } }