/// <summary>
/// Gets a string suitable for display in the debugger.
/// </summary>
- private string DebuggerDisplay => $"{nameof(Index)}: {Index}, {nameof(Count)}: {Count}";
+ private string DebuggerDisplay => $"{nameof(Index)} = {Index}, {nameof(Count)} = {Count}";
}
/// <summary>
/// </summary>
/// <typeparam name="T">The type of element stored by the stack.</typeparam>
[CollectionBuilder(typeof(ImmutableStack), nameof(ImmutableStack.Create))]
- [DebuggerDisplay("IsEmpty = {IsEmpty}; Top = {_head}")]
+ [DebuggerDisplay("IsEmpty = {IsEmpty}, Top = {_head}")]
[DebuggerTypeProxy(typeof(ImmutableEnumerableDebuggerProxy<>))]
public sealed partial class ImmutableStack<T> : IImmutableStack<T>
{
/// used in conjunction with the <see cref='System.Diagnostics.Process'/>
/// component.
/// </devdoc>
- [DebuggerDisplay("FileName={FileName}, Arguments={BuildArguments()}, WorkingDirectory={WorkingDirectory}")]
+ [DebuggerDisplay("FileName = {FileName}, Arguments = {BuildArguments()}, WorkingDirectory = {WorkingDirectory}")]
public sealed partial class ProcessStartInfo
{
private string? _fileName;
namespace System.DirectoryServices.AccountManagement
{
- [System.Diagnostics.DebuggerDisplay("Name ( {Name} )")]
+ [System.Diagnostics.DebuggerDisplay("Name = {Name}")]
public abstract class Principal : IDisposable
{
//
// against best practices as the current project language parses the string with
// language specific heuristics.
- private string NameAndARGBValue => $"{{Name={Name}, ARGB=({A}, {R}, {G}, {B})}}";
+ private string NameAndARGBValue => $"{{Name = {Name}, ARGB = ({A}, {R}, {G}, {B})}}";
public string Name
{
accHigh ^= ReadUInt64LE(input1) + ReadUInt64LE(input1 + 8);
}
- [DebuggerDisplay("Low64: {" + nameof(Low64) + "}, High64: {" + nameof(High64) + "}")]
+ [DebuggerDisplay("Low64 = {" + nameof(Low64) + "}, High64 = {" + nameof(High64) + "}")]
private readonly struct Hash128
{
public readonly ulong Low64;
namespace System.IO.Pipelines
{
- [DebuggerDisplay("CanceledState: {_awaitableState}, IsCompleted: {IsCompleted}")]
+ [DebuggerDisplay("CanceledState = {_awaitableState}, IsCompleted = {IsCompleted}")]
internal struct PipeAwaitable
{
private AwaitableState _awaitableState;
namespace System.IO.Pipelines
{
- [DebuggerDisplay("IsCompleted: {" + nameof(IsCompleted) + "}")]
+ [DebuggerDisplay("IsCompleted = {" + nameof(IsCompleted) + "}")]
internal struct PipeCompletion
{
private static readonly object s_completedSuccessfully = new object();
namespace System.IO.Pipelines
{
- [DebuggerDisplay("State: {_state}")]
+ [DebuggerDisplay("State = {_state}")]
internal struct PipeOperationState
{
private State _state;
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public T[] Items => _array;
- [DebuggerDisplay("Count: {Segments.Length}", Name = "Segments")]
+ [DebuggerDisplay("Count = {Segments.Length}", Name = "Segments")]
public struct ReadOnlySequenceDebugViewSegments
{
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
/// </para>
/// </remarks>
[DebuggerTypeProxy(typeof(LazyDebugView<>))]
- [DebuggerDisplay("ThreadSafetyMode={Mode}, IsValueCreated={IsValueCreated}, IsValueFaulted={IsValueFaulted}, Value={ValueForDebugDisplay}")]
+ [DebuggerDisplay("ThreadSafetyMode = {Mode}, IsValueCreated = {IsValueCreated}, IsValueFaulted = {IsValueFaulted}, Value = {ValueForDebugDisplay}")]
public class Lazy<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)]T>
{
private static T CreateViaDefaultConstructor() => LazyHelper.CreateViaDefaultConstructor<T>();
{
T[] values = GetValues();
- string display = $"{GetType().Name}, Count={values.Length}";
+ string display = $"{GetType().Name}, Count = {values.Length}";
if (values.Length > 0)
{
- display += ", Values=";
+ display += ", Values = ";
display += typeof(T) == typeof(char) ?
"\"" + new string(Unsafe.As<T[], char[]>(ref values)) + "\"" :
string.Join(",", values);
/// Provides concurrent and exclusive task schedulers that coordinate to execute
/// tasks while ensuring that concurrent tasks may run concurrently and exclusive tasks never do.
/// </summary>
- [DebuggerDisplay("Concurrent={ConcurrentTaskCountForDebugger}, Exclusive={ExclusiveTaskCountForDebugger}, Mode={ModeForDebugger}")]
+ [DebuggerDisplay("Concurrent = {ConcurrentTaskCountForDebugger}, Exclusive = {ExclusiveTaskCountForDebugger}, Mode = {ModeForDebugger}")]
[DebuggerTypeProxy(typeof(DebugView))]
public class ConcurrentExclusiveSchedulerPair
{
/// <summary>
/// A scheduler shim used to queue tasks to the pair and execute those tasks on request of the pair.
/// </summary>
- [DebuggerDisplay("Count={CountForDebugger}, MaxConcurrencyLevel={m_maxConcurrencyLevel}, Id={Id}")]
+ [DebuggerDisplay("Count = {CountForDebugger}, MaxConcurrencyLevel = {m_maxConcurrencyLevel}, Id = {Id}")]
[DebuggerTypeProxy(typeof(DebugView))]
private sealed class ConcurrentExclusiveTaskScheduler : TaskScheduler
{
/// and may be used from multiple threads concurrently.
/// </para>
/// </remarks>
- [DebuggerDisplay("Id={Id}")]
+ [DebuggerDisplay("Id = {Id}")]
[DebuggerTypeProxy(typeof(SystemThreadingTasks_TaskSchedulerDebugView))]
public abstract class TaskScheduler
{
/// </para>
/// </remarks>
[DebuggerTypeProxy(typeof(SystemThreading_ThreadLocalDebugView<>))]
- [DebuggerDisplay("IsValueCreated={IsValueCreated}, Value={ValueForDebugDisplay}, Count={ValuesCountForDebugDisplay}")]
+ [DebuggerDisplay("IsValueCreated = {IsValueCreated}, Value = {ValueForDebugDisplay}, Count = {ValuesCountForDebugDisplay}")]
public class ThreadLocal<T> : IDisposable
{
// a delegate that returns the created value, if null the created value will be default(T)
namespace MS.Internal.Xml.XPath
{
- [DebuggerDisplay("Position={CurrentPosition}, Current={debuggerDisplayProxy, nq}")]
+ [DebuggerDisplay("Position = {CurrentPosition}, Current = {debuggerDisplayProxy, nq}")]
internal class XPathArrayIterator : ResettableIterator
{
protected IList list;
namespace System.Xml.XPath
{
- [DebuggerDisplay("Position={CurrentPosition}, Current={debuggerDisplayProxy}")]
+ [DebuggerDisplay("Position = {CurrentPosition}, Current = {debuggerDisplayProxy}")]
public abstract class XPathNodeIterator : ICloneable, IEnumerable
{
internal int count = -1;
/// The CurveType property determines whether the curve is a named curve or an explicit curve
/// which is either a prime curve or a characteristic-2 curve.
/// </remarks>
- [DebuggerDisplay("ECCurve: {Oid}")]
+ [DebuggerDisplay("ECCurve = {Oid}")]
public partial struct ECCurve
{
/// <summary>
namespace System.Speech.Internal.SrgsCompiler
{
#if DEBUG
- [DebuggerDisplay("Count #{Count}")]
+ [DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(ArcListDebugDisplay))]
#endif
internal class ArcList : RBList
namespace System.Speech.Internal.SrgsCompiler
{
// list of rules with scripts
- [DebuggerDisplay("rule=\"{_rule}\" method=\"{_sMethod}\" operation=\"{_method.ToString ()}\"")]
+ [DebuggerDisplay("rule = \"{_rule}\", method = \"{_sMethod}\", operation = \"{_method.ToString ()}\"")]
internal class ScriptRef
{
#region Constructors
/// instead all the arcs are, with a flag to indicate the end arc out of a state */
/// </summary>
#if DEBUG
- [DebuggerDisplay("{ToString ()}")]
+ [DebuggerDisplay("{ToString()}")]
#endif
internal sealed class State : IComparable<State>
{
{
// Class for grammars which are to be loaded from SRGS or CFG.
// In contrast to dictation grammars which inherit from this.
- [DebuggerDisplay("Grammar: {(_uri != null ? \"uri=\" + _uri.ToString () + \" \" : \"\") + \"rule=\" + _ruleName }")]
+ [DebuggerDisplay("Grammar = {(_uri != null ? \"uri=\" + _uri.ToString () + \" \" : \"\") + \"rule=\" + _ruleName }")]
public class Grammar
{
#region Constructors
/// Base class for all SRGS object to build XML fragment corresponding to the object.
/// </summary>
[Serializable]
- [DebuggerDisplay("SrgsElement Children:[{_items.Count}]")]
+ [DebuggerDisplay("SrgsElement Children = [{_items.Count}]")]
[DebuggerTypeProxy(typeof(SrgsElementDebugDisplay))]
public abstract class SrgsElement : MarshalByRefObject, IElement
{
namespace System.Speech.Recognition.SrgsGrammar
{
[Serializable]
- [DebuggerDisplay("{DebuggerDisplayString ()}")]
+ [DebuggerDisplay("{DebuggerDisplayString()}")]
public class SrgsNameValueTag : SrgsElement, IPropertyTag
{
#region Constructors
internal override string DebuggerDisplayString()
{
- StringBuilder sb = new("SrgsNameValue ");
+ StringBuilder sb = new("SrgsNameValue = ");
if (_name != null)
{
namespace System.Speech.Recognition.SrgsGrammar
{
[Serializable]
- [DebuggerDisplay("Rule={_id.ToString()} Scope={_scope.ToString()}")]
+ [DebuggerDisplay("Rule = {_id.ToString()}, Scope = {_scope.ToString()}")]
[DebuggerTypeProxy(typeof(SrgsRuleDebugDisplay))]
public class SrgsRule : IRule
{
StringBuilder sb = new("SrgsRuleRef");
if (_uri != null)
{
- sb.Append(" uri='");
+ sb.Append(" uri = '");
sb.Append(_uri.ToString());
sb.Append('\'');
}
else
{
- sb.Append(" special='");
+ sb.Append(" special = '");
sb.Append(_type.ToString());
sb.Append('\'');
}
namespace System.Speech.Recognition.SrgsGrammar
{
[Serializable]
- [DebuggerDisplay("{DebuggerDisplayString ()}")]
+ [DebuggerDisplay("{DebuggerDisplayString()}")]
public class SrgsSemanticInterpretationTag : SrgsElement, ISemanticTag
{
#region Constructors
internal override string DebuggerDisplayString()
{
- StringBuilder sb = new("SrgsSemanticInterpretationTag '");
+ StringBuilder sb = new("SrgsSemanticInterpretationTag = '");
sb.Append(_script);
sb.Append('\'');
return sb.ToString();
// Note that currently if multiple words are stored in a Subset they are treated internally
// and in the result as multiple tokens.
[Serializable]
- [DebuggerDisplay("{DebuggerDisplayString ()}")]
+ [DebuggerDisplay("{DebuggerDisplayString()}")]
public class SrgsSubset : SrgsElement, ISubset
{
#region Constructors
namespace System.Speech.Recognition.SrgsGrammar
{
[Serializable]
- [DebuggerDisplay("{DebuggerDisplayString ()}")]
+ [DebuggerDisplay("{DebuggerDisplayString()}")]
public class SrgsText : SrgsElement, IElementText
{
#region Constructors
// Note that currently if multiple words are stored in a Token they are treated internally
// and in the result as multiple tokens.
[Serializable]
- [DebuggerDisplay("{DebuggerDisplayString ()}")]
+ [DebuggerDisplay("{DebuggerDisplayString()}")]
public class SrgsToken : SrgsElement, IToken
{
#region Constructors
internal override string DebuggerDisplayString()
{
- StringBuilder sb = new("Token '");
+ StringBuilder sb = new("Token = '");
sb.Append(_text);
sb.Append('\'');
if (_pronunciation != null)
{
- sb.Append(" Pronunciation '");
+ sb.Append(", Pronunciation = '");
sb.Append(_pronunciation);
sb.Append('\'');
}
internal string DebuggerDisplayString()
{
- StringBuilder sb = new("Recognized text: '");
+ StringBuilder sb = new("Recognized text = '");
sb.Append(Text);
sb.Append('\'');
if (Semantics.Value != null)
{
- sb.Append(" - Semantic Value = ");
+ sb.Append(", Semantic Value = ");
sb.Append(Semantics.Value.ToString());
}
if (Semantics.Count > 0)
{
- sb.Append(" - Semantic children count = ");
+ sb.Append(", Semantic children count = ");
sb.Append(Semantics.Count.ToString(CultureInfo.InvariantCulture));
}
if (Alternates.Count > 1)
{
- sb.Append(" - Alternate word count = ");
+ sb.Append(", Alternate word count = ");
sb.Append(Alternates.Count.ToString(CultureInfo.InvariantCulture));
}
private string DisplayDebugInfo()
{
- return $"'rule={_rule}";
+ return $"'rule = {_rule}";
}
internal Grammar _grammar;
internal string _rule;
internal RuleNode _next;
internal RuleNode _child;
}
- [DebuggerDisplay("Name={_name} node={_ruleNode._rule} value={_value != null && _value.Value != null ? _value.Value.ToString() : \"\"}")]
+ [DebuggerDisplay("Name = {_name}, node = {_ruleNode._rule}, value = {_value != null && _value.Value != null ? _value.Value.ToString() : \"\"}")]
private struct ResultPropertiesRef
{
internal string _name;
namespace System.Speech.Recognition
{
[Serializable]
- [DebuggerDisplay("Text: {Text}")]
+ [DebuggerDisplay("Text = {Text}")]
public class RecognizedWordUnit
{
namespace System.Speech.Recognition
{
[Serializable]
- [DebuggerDisplay("'{_keyName}'= {Value} - Children = {_dictionary.Count}")]
+ [DebuggerDisplay("{_keyName} = {Value}, Children = {_dictionary.Count}")]
[DebuggerTypeProxy(typeof(SemanticValueDebugDisplay))]
public sealed class SemanticValue : IDictionary<string, SemanticValue>
{
namespace System.Speech.Synthesis
{
- [DebuggerDisplay("{VoiceInfo.Name} [{Enabled ? \"Enabled\" : \"Disabled\"}]")]
+ [DebuggerDisplay("{VoiceInfo.Name} = [{Enabled ? \"Enabled\" : \"Disabled\"}]")]
public class InstalledVoice
{
#region Constructors
#region Public Types
[StructLayout(LayoutKind.Sequential)]
- [DebuggerDisplay("{State.Action} {TextToSpeak!=null?TextToSpeak:\"\"}")]
+ [DebuggerDisplay("{State.Action} = {TextToSpeak!=null?TextToSpeak:\"\"}")]
public class TextFragment
{
public TextFragment()
/// When adding new members to the type, please ensure that these properties
/// are satisfied otherwise we risk breaking incremental caching in the source generator!
/// </remarks>
- [DebuggerDisplay("ContextType={ContextType.Name}")]
+ [DebuggerDisplay("ContextType = {ContextType.Name}")]
public sealed record ContextGenerationSpec
{
public required TypeRef ContextType { get; init; }
/// When adding new members to the type, please ensure that these properties
/// are satisfied otherwise we risk breaking incremental caching in the source generator!
/// </remarks>
- [DebuggerDisplay("Name={MemberName}, Type={PropertyType.Name}")]
+ [DebuggerDisplay("Name = {MemberName}, Type = {PropertyType.Name}")]
public sealed record PropertyGenerationSpec
{
/// <summary>
/// When adding new members to the type, please ensure that these properties
/// are satisfied otherwise we risk breaking incremental caching in the source generator!
/// </remarks>
- [DebuggerDisplay("Type={TypeRef.Name}, ClassType={ClassType}")]
+ [DebuggerDisplay("Type = {TypeRef.Name}, ClassType = {ClassType}")]
public sealed record TypeGenerationSpec
{
/// <summary>
/// <summary>
/// An equatable value representing type identity.
/// </summary>
- [DebuggerDisplay("Name={Name}")]
+ [DebuggerDisplay("Name = {Name}")]
public sealed class TypeRef : IEquatable<TypeRef>
{
public TypeRef(ITypeSymbol type)
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
- private string DebuggerDisplay => $"TokenType = {DebugTokenType} (TokenStartIndex = {TokenStartIndex}) Consumed = {BytesConsumed}";
+ private string DebuggerDisplay => $"TokenType = {DebugTokenType}, TokenStartIndex = {TokenStartIndex}, Consumed = {BytesConsumed}";
// Using TokenType.ToString() (or {TokenType}) fails to render in the debug window. The
// message "The runtime refused to evaluate the expression at this time." is shown. This
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
- private string DebuggerDisplay => $"Path:{JsonPath()} Current: ConverterStrategy.{Current.JsonTypeInfo?.Converter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
+ private string DebuggerDisplay => $"Path = {JsonPath()}, Current = ConverterStrategy.{Current.JsonTypeInfo?.Converter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
}
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
- private string DebuggerDisplay => $"Path:{PropertyPath()} Current: ConverterStrategy.{Current.JsonPropertyInfo?.EffectiveConverter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
+ private string DebuggerDisplay => $"Path = {PropertyPath()} Current = ConverterStrategy.{Current.JsonPropertyInfo?.EffectiveConverter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
}
}
namespace System.Threading.Channels
{
/// <summary>Provides a channel with a bounded capacity.</summary>
- [DebuggerDisplay("Items={ItemsCountForDebugger}, Capacity={_bufferedCapacity}, Mode={_mode}, Closed={ChannelIsClosedForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}, Capacity = {_bufferedCapacity}, Mode = {_mode}, Closed = {ChannelIsClosedForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
internal sealed class BoundedChannel<T> : Channel<T>, IDebugEnumerable<T>
{
Writer = new BoundedChannelWriter(this);
}
- [DebuggerDisplay("Items={ItemsCountForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
private sealed class BoundedChannelReader : ChannelReader<T>, IDebugEnumerable<T>
{
IEnumerator<T> IDebugEnumerable<T>.GetEnumerator() => _parent._items.GetEnumerator();
}
- [DebuggerDisplay("Items={ItemsCountForDebugger}, Capacity={CapacityForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}, Capacity = {CapacityForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
private sealed class BoundedChannelWriter : ChannelWriter<T>, IDebugEnumerable<T>
{
/// Provides a buffered channel of unbounded capacity for use by any number
/// of writers but at most a single reader at a time.
/// </summary>
- [DebuggerDisplay("Items={ItemsCountForDebugger}, Closed={ChannelIsClosedForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}, Closed = {ChannelIsClosedForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
internal sealed class SingleConsumerUnboundedChannel<T> : Channel<T>, IDebugEnumerable<T>
{
Writer = new UnboundedChannelWriter(this);
}
- [DebuggerDisplay("Items={ItemsCountForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
private sealed class UnboundedChannelReader : ChannelReader<T>, IDebugEnumerable<T>
{
IEnumerator<T> IDebugEnumerable<T>.GetEnumerator() => _parent._items.GetEnumerator();
}
- [DebuggerDisplay("Items={ItemsCountForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
private sealed class UnboundedChannelWriter : ChannelWriter<T>, IDebugEnumerable<T>
{
namespace System.Threading.Channels
{
/// <summary>Provides a buffered channel of unbounded capacity.</summary>
- [DebuggerDisplay("Items={ItemsCountForDebugger}, Closed={ChannelIsClosedForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}, Closed = {ChannelIsClosedForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
internal sealed class UnboundedChannel<T> : Channel<T>, IDebugEnumerable<T>
{
Writer = new UnboundedChannelWriter(this);
}
- [DebuggerDisplay("Items={Count}")]
+ [DebuggerDisplay("Items = {Count}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
private sealed class UnboundedChannelReader : ChannelReader<T>, IDebugEnumerable<T>
{
IEnumerator<T> IDebugEnumerable<T>.GetEnumerator() => _parent._items.GetEnumerator();
}
- [DebuggerDisplay("Items={ItemsCountForDebugger}")]
+ [DebuggerDisplay("Items = {ItemsCountForDebugger}")]
[DebuggerTypeProxy(typeof(DebugEnumeratorDebugView<>))]
private sealed class UnboundedChannelWriter : ChannelWriter<T>, IDebugEnumerable<T>
{
{
var displaySource = _source as IDebuggerDisplay;
var displayTarget = _target as IDebuggerDisplay;
- return $"{Common.GetNameForDebugger(this)} Source=\"{(displaySource != null ? displaySource.Content : _source)}\", Target=\"{(displayTarget != null ? displayTarget.Content : _target)}\"";
+ return $"{Common.GetNameForDebugger(this)} Source = \"{(displaySource != null ? displaySource.Content : _source)}\", Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
get
{
var displayTarget = _target as IDebuggerDisplay;
- return $"{Common.GetNameForDebugger(this)} Message={_messageValue}, Target=\"{(displayTarget != null ? displayTarget.Content : _target)}\"";
+ return $"{Common.GetNameForDebugger(this)} Message = {_messageValue}, Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
/// <summary>The data to display in the debugger display attribute.</summary>
- private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted={base.Task.IsCompleted}";
+ private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted = {base.Task.IsCompleted}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
/// <summary>The data to display in the debugger display attribute.</summary>
- private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted={base.Task.IsCompleted}";
+ private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted = {base.Task.IsCompleted}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
{
var displayTarget = _target as IDebuggerDisplay;
var displaySource = _source as IDebuggerDisplay;
- return $"{Common.GetNameForDebugger(this)} Target=\"{(displayTarget != null ? displayTarget.Content : _target)}\", Source=\"{(displaySource != null ? displaySource.Content : _source)}\"";
+ return $"{Common.GetNameForDebugger(this)} Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\", Source = \"{(displaySource != null ? displaySource.Content : _source)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
/// <summary>The data to display in the debugger display attribute.</summary>
- private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted={base.Task.IsCompleted}";
+ private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted = {base.Task.IsCompleted}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
get
{
var displaySource = _source as IDebuggerDisplay;
- return $"Observers={_observersState.Observers.Count}, Block=\"{(displaySource != null ? displaySource.Content : _source)}\"";
+ return $"Observers = {_observersState.Observers.Count}, Block = \"{(displaySource != null ? displaySource.Content : _source)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
get
{
var displayTarget = _target as IDebuggerDisplay;
- return $"Block=\"{(displayTarget != null ? displayTarget.Content : _target)}\"";
+ return $"Block = \"{(displayTarget != null ? displayTarget.Content : _target)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{(Common.GetNameForDebugger(this, _defaultTarget != null ? _defaultTarget.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions))}, InputCount={InputCountForDebugger}";
+ $"{(Common.GetNameForDebugger(this, _defaultTarget != null ? _defaultTarget.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions))}, InputCount = {InputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize={BatchSize}, OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
get
{
var displayBatch = _owningBatch as IDebuggerDisplay;
- return $"Block=\"{(displayBatch != null ? displayBatch.Content : _owningBatch)}\"";
+ return $"Block = \"{(displayBatch != null ? displayBatch.Content : _owningBatch)}\"";
}
}
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize={BatchSize}, OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize={BatchSize}, OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this)} InputCount={_messages.Count}";
+ $"{Common.GetNameForDebugger(this)} InputCount = {_messages.Count}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); }
/// <summary>The data to display in the debugger display attribute.</summary>
- private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, HasValue={HasValueForDebugger}, Value={ValueForDebugger}";
+ private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, HasValue = {HasValueForDebugger}, Value = {ValueForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
get
{
var displaySource = _owningSource as IDebuggerDisplay;
- return $"Block=\"{(displaySource != null ? displaySource.Content : _owningSource)}\"";
+ return $"Block = \"{(displaySource != null ? displaySource.Content : _owningSource)}\"";
}
}
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, Count={CountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, Count = {CountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)} OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)} OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
get
{
var displayJoin = _sharedResources._ownerJoin as IDebuggerDisplay;
- return $"{Common.GetNameForDebugger(this)} InputCount={InputCountForDebugger}, Join=\"{(displayJoin != null ? displayJoin.Content : _sharedResources._ownerJoin)}\"";
+ return $"{Common.GetNameForDebugger(this)} InputCount = {InputCountForDebugger}, Join = \"{(displayJoin != null ? displayJoin.Content : _sharedResources._ownerJoin)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
get
{
var displayJoin = _ownerJoin as IDebuggerDisplay;
- return $"Block=\"{(displayJoin != null ? displayJoin.Content : _ownerJoin)}\"";
+ return $"Block = \"{(displayJoin != null ? displayJoin.Content : _ownerJoin)}\"";
}
}
}
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, InputCount={InputCountForDebugger}, OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, InputCount = {InputCountForDebugger}, OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, InputCount={InputCountForDebugger}, OutputCount={OutputCountForDebugger}";
+ $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, InputCount = {InputCountForDebugger}, OutputCount = {OutputCountForDebugger}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
/// <summary>The data to display in the debugger display attribute.</summary>
private object DebuggerDisplayContent =>
- $"{Common.GetNameForDebugger(this, _dataflowBlockOptions)}, HasValue={HasValue}, Value={Value}";
+ $"{Common.GetNameForDebugger(this, _dataflowBlockOptions)}, HasValue = {HasValue}, Value = {Value}";
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
object IDebuggerDisplay.Content { get { return DebuggerDisplayContent; } }
}
/// <summary>State used only when bounding.</summary>
- [DebuggerDisplay("BoundedCapacity={BoundedCapacity}}")]
+ [DebuggerDisplay("BoundedCapacity = {BoundedCapacity}}")]
internal class BoundingState
{
/// <summary>The maximum number of messages allowed to be buffered.</summary>
/// <summary>Stated used only when bounding and when postponed messages are stored.</summary>
/// <typeparam name="TInput">Specifies the type of input messages.</typeparam>
- [DebuggerDisplay("BoundedCapacity={BoundedCapacity}, PostponedMessages={PostponedMessagesCountForDebugger}")]
+ [DebuggerDisplay("BoundedCapacity = {BoundedCapacity}, PostponedMessages = {PostponedMessagesCountForDebugger}")]
internal class BoundingStateWithPostponed<TInput> : BoundingState
{
/// <summary>Queue of postponed messages.</summary>
/// <summary>Provides a simple, immutable array.</summary>
/// <typeparam name="T">Specifies the type of the data stored in the array.</typeparam>
- [DebuggerDisplay("Count={Count}")]
+ [DebuggerDisplay("Count = {Count}")]
internal readonly struct ImmutableArray<T>
{
/// <summary>An empty array.</summary>
/// This type expects the first item to be ID==0 and for all subsequent items
/// to increase IDs sequentially.
/// </remarks>
- [DebuggerDisplay("Count={CountForDebugging}")]
+ [DebuggerDisplay("Count = {CountForDebugging}")]
[DebuggerTypeProxy(typeof(ReorderingBuffer<>.DebugView))]
internal sealed class ReorderingBuffer<TOutput> : IReorderingBuffer
{
get
{
var displaySource = _owningSource as IDebuggerDisplay;
- return $"Block=\"{(displaySource != null ? displaySource.Content : _owningSource)}\"";
+ return $"Block = \"{(displaySource != null ? displaySource.Content : _owningSource)}\"";
}
}
get
{
var displayTarget = _owningTarget as IDebuggerDisplay;
- return $"Block=\"{(displayTarget != null ? displayTarget.Content : _owningTarget)}\"";
+ return $"Block = \"{(displayTarget != null ? displayTarget.Content : _owningTarget)}\"";
}
}
get
{
var displayTarget = _owningTarget as IDebuggerDisplay;
- return $"Block=\"{(displayTarget != null ? displayTarget.Content : _owningTarget)}\"";
+ return $"Block = \"{(displayTarget != null ? displayTarget.Content : _owningTarget)}\"";
}
}
/// <summary>Stores targets registered with a source.</summary>
/// <typeparam name="T">Specifies the type of data accepted by the targets.</typeparam>
/// <remarks>This type is not thread-safe.</remarks>
- [DebuggerDisplay("Count={Count}")]
+ [DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(TargetRegistry<>.DebugView))]
internal sealed class TargetRegistry<T>
{
{
var displaySource = _owningSource as IDebuggerDisplay;
var displayTarget = _target as IDebuggerDisplay;
- return $"{Common.GetNameForDebugger(this)} Source=\"{(displaySource != null ? displaySource.Content : _owningSource)}\", Target=\"{(displayTarget != null ? displayTarget.Content : _target)}\"";
+ return $"{Common.GetNameForDebugger(this)} Source = \"{(displaySource != null ? displaySource.Content : _owningSource)}\", Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\"";
}
}
/// <summary>Gets the data to display in the debugger display attribute for this instance.</summary>
/// completed.
/// </para>
/// </remarks>
- [DebuggerDisplay("Participant Count={ParticipantCount},Participants Remaining={ParticipantsRemaining}")]
+ [DebuggerDisplay("ParticipantCount = {ParticipantCount}, ParticipantsRemaining = {ParticipantsRemaining}")]
public class Barrier : IDisposable
{
//This variable holds the basic barrier variables:
/// completed, and Reset, which should only be used when no other threads are
/// accessing the event.
/// </remarks>
- [DebuggerDisplay("Initial Count={InitialCount}, Current Count={CurrentCount}")]
+ [DebuggerDisplay("InitialCount = {InitialCount}, CurrentCount = {CurrentCount}")]
public class CountdownEvent : IDisposable
{
// CountdownEvent is a simple synchronization primitive used for fork/join parallelism. We create a
var locals = await GetProperties(pause_location["callFrames"][0]["callFrameId"].Value<string>());
await CheckObject(locals, "a", "DebuggerTests.WithDisplayString", description:"Some one Value 2 End");
- await CheckObject(locals, "c", "DebuggerTests.DebuggerDisplayMethodTest", description: "First Int:32 Second Int:43");
+ await CheckObject(locals, "c", "DebuggerTests.DebuggerDisplayMethodTest", description: "First Int = 32, Second Int = 43");
await CheckObject(locals, "myList", "System.Collections.Generic.List<int>", description: "Count = 4");
- await CheckObject(locals, "person1", "DebuggerTests.Person", description: "FirstName: Anton, SurName: Mueller, Age: 44");
- await CheckObject(locals, "person2", "DebuggerTests.Person", description: "FirstName: Lisa, SurName: M\u00FCller, Age: 41");
+ await CheckObject(locals, "person1", "DebuggerTests.Person", description: "FirstName = Anton, SurName = Mueller, Age = 44");
+ await CheckObject(locals, "person2", "DebuggerTests.Person", description: "FirstName = Lisa, SurName = M\u00FCller, Age = 41");
}
[ConditionalFact(nameof(RunningOnChrome))]
string GetDebuggerDisplay ()
{
- return "First Int:" + someInt + " Second Int:" + someInt2;
+ return "First Int = " + someInt + ", Second Int = " + someInt2;
}
}
- [DebuggerDisplay("FirstName: {FirstName}, SurName: {SurName}, Age: {Age}")]
+ [DebuggerDisplay("FirstName = {FirstName}, SurName = {SurName}, Age = {Age}")]
public class Person {
public string FirstName { get; set; }
public string SurName { get; set; }
{
/// <summary>Provides a thread-safe object pool.</summary>
/// <typeparam name="T">Specifies the type of the elements stored in the pool.</typeparam>
- [DebuggerDisplay("Count={Count}")]
+ [DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(IProducerConsumerCollection_DebugView<>))]
public sealed class ObjectPool<T> : ProducerConsumerCollectionBase<T>
{
{
/// <summary>Provides a thread-safe object pool.</summary>
/// <typeparam name="T">Specifies the type of the elements stored in the pool.</typeparam>
- [DebuggerDisplay("Count={Count}")]
+ [DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(IProducerConsumerCollection_DebugView<>))]
public sealed class ObjectPool<T> : ProducerConsumerCollectionBase<T>
{
/// </summary>
public Guid RuntimeInstanceCookie { get; }
- internal string DebuggerDisplay => FormattableString.Invariant($"PID={ProcessId}, Cookie={RuntimeInstanceCookie}");
+ internal string DebuggerDisplay => FormattableString.Invariant($"PID = {ProcessId}, Cookie = {RuntimeInstanceCookie}");
}
}