Files
2026-06-04 11:42:34 +02:00

194 lines
8.0 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.Diagnostics
{
/// <summary>Specifies that the type has a visualizer. This class cannot be inherited. </summary>
/// <filterpriority>1</filterpriority>
// Token: 0x02000164 RID: 356
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
[ComVisible(true)]
public sealed class DebuggerVisualizerAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerVisualizerAttribute" /> class, specifying the type name of the visualizer.</summary>
/// <param name="visualizerTypeName">The fully qualified type name of the visualizer.</param>
// Token: 0x0600114B RID: 4427 RVA: 0x0004518C File Offset: 0x0004338C
public DebuggerVisualizerAttribute(string visualizerTypeName)
{
this.visualizerName = visualizerTypeName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerVisualizerAttribute" /> class, specifying the type of the visualizer.</summary>
/// <param name="visualizer">The type of the visualizer.</param>
/// <exception cref="T:System.ArgumentNullException">v<paramref name="isualizer" /> is null.</exception>
// Token: 0x0600114C RID: 4428 RVA: 0x0004519C File Offset: 0x0004339C
public DebuggerVisualizerAttribute(Type visualizer)
{
if (visualizer == null)
{
throw new ArgumentNullException("visualizer");
}
this.visualizerName = visualizer.AssemblyQualifiedName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerVisualizerAttribute" /> class, specifying the type name of the visualizer and the type name of the visualizer object source.</summary>
/// <param name="visualizerTypeName">The fully qualified type name of the visualizer.</param>
/// <param name="visualizerObjectSourceTypeName">The fully qualified type name of the visualizer object source.</param>
// Token: 0x0600114D RID: 4429 RVA: 0x000451C4 File Offset: 0x000433C4
public DebuggerVisualizerAttribute(string visualizerTypeName, string visualizerObjectSourceTypeName)
{
this.visualizerName = visualizerTypeName;
this.visualizerSourceName = visualizerObjectSourceTypeName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerVisualizerAttribute" /> class, specifying the type name of the visualizer and the type of the visualizer object source.</summary>
/// <param name="visualizerTypeName">The fully qualified type name of the visualizer.</param>
/// <param name="visualizerObjectSource">The type of the visualizer object source.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="visualizerObjectSource" /> is null.</exception>
// Token: 0x0600114E RID: 4430 RVA: 0x000451DC File Offset: 0x000433DC
public DebuggerVisualizerAttribute(string visualizerTypeName, Type visualizerObjectSource)
{
if (visualizerObjectSource == null)
{
throw new ArgumentNullException("visualizerObjectSource");
}
this.visualizerName = visualizerTypeName;
this.visualizerSourceName = visualizerObjectSource.AssemblyQualifiedName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerVisualizerAttribute" /> class, specifying the type of the visualizer and the type name of the visualizer object source.</summary>
/// <param name="visualizer">The type of the visualizer.</param>
/// <param name="visualizerObjectSourceTypeName">The fully qualified type name of the visualizer object source.</param>
/// <exception cref="T:System.ArgumentNullException">v<paramref name="isualizer" /> is null.</exception>
// Token: 0x0600114F RID: 4431 RVA: 0x00045214 File Offset: 0x00043414
public DebuggerVisualizerAttribute(Type visualizer, string visualizerObjectSourceTypeName)
{
if (visualizer == null)
{
throw new ArgumentNullException("visualizer");
}
this.visualizerName = visualizer.AssemblyQualifiedName;
this.visualizerSourceName = visualizerObjectSourceTypeName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerVisualizerAttribute" /> class, specifying the type of the visualizer and the type of the visualizer object source.</summary>
/// <param name="visualizer">The type of the visualizer.</param>
/// <param name="visualizerObjectSource">The type of the visualizer object source.</param>
/// <exception cref="T:System.ArgumentNullException">v<paramref name="isualizer" /> is null.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="visualizerObjectSource" /> is null.</exception>
// Token: 0x06001150 RID: 4432 RVA: 0x0004524C File Offset: 0x0004344C
public DebuggerVisualizerAttribute(Type visualizer, Type visualizerObjectSource)
{
if (visualizer == null)
{
throw new ArgumentNullException("visualizer");
}
if (visualizerObjectSource == null)
{
throw new ArgumentNullException("visualizerObjectSource");
}
this.visualizerName = visualizer.AssemblyQualifiedName;
this.visualizerSourceName = visualizerObjectSource.AssemblyQualifiedName;
}
/// <summary>Gets or sets the description of the visualizer.</summary>
/// <returns>The description of the visualizer.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170002F5 RID: 757
// (get) Token: 0x06001151 RID: 4433 RVA: 0x0004529C File Offset: 0x0004349C
// (set) Token: 0x06001152 RID: 4434 RVA: 0x000452A4 File Offset: 0x000434A4
public string Description
{
get
{
return this.description;
}
set
{
this.description = value;
}
}
/// <summary>Gets or sets the target type when the attribute is applied at the assembly level.</summary>
/// <returns>The type that is the target of the visualizer.</returns>
/// <exception cref="T:System.ArgumentNullException">The value cannot be set because it is null.</exception>
/// <filterpriority>2</filterpriority>
// Token: 0x170002F6 RID: 758
// (get) Token: 0x06001153 RID: 4435 RVA: 0x000452B0 File Offset: 0x000434B0
// (set) Token: 0x06001154 RID: 4436 RVA: 0x000452B8 File Offset: 0x000434B8
public Type Target
{
get
{
return this.target;
}
set
{
this.target = value;
this.targetTypeName = this.target.AssemblyQualifiedName;
}
}
/// <summary>Gets or sets the fully qualified type name when the attribute is applied at the assembly level.</summary>
/// <returns>The fully qualified type name of the target type.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170002F7 RID: 759
// (get) Token: 0x06001155 RID: 4437 RVA: 0x000452D4 File Offset: 0x000434D4
// (set) Token: 0x06001156 RID: 4438 RVA: 0x000452DC File Offset: 0x000434DC
public string TargetTypeName
{
get
{
return this.targetTypeName;
}
set
{
this.targetTypeName = value;
}
}
/// <summary>Gets the fully qualified type name of the visualizer object source.</summary>
/// <returns>The fully qualified type name of the visualizer object source.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170002F8 RID: 760
// (get) Token: 0x06001157 RID: 4439 RVA: 0x000452E8 File Offset: 0x000434E8
public string VisualizerObjectSourceTypeName
{
get
{
return this.visualizerSourceName;
}
}
/// <summary>Gets the fully qualified type name of the visualizer.</summary>
/// <returns>The fully qualified visualizer type name.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170002F9 RID: 761
// (get) Token: 0x06001158 RID: 4440 RVA: 0x000452F0 File Offset: 0x000434F0
public string VisualizerTypeName
{
get
{
return this.visualizerName;
}
}
// Token: 0x0400044F RID: 1103
private string description;
// Token: 0x04000450 RID: 1104
private string visualizerSourceName;
// Token: 0x04000451 RID: 1105
private string visualizerName;
// Token: 0x04000452 RID: 1106
private string targetTypeName;
// Token: 0x04000453 RID: 1107
private Type target;
}
}