using System; using System.Runtime.InteropServices; namespace System.Diagnostics { /// Specifies that the type has a visualizer. This class cannot be inherited. /// 1 // Token: 0x02000164 RID: 356 [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)] [ComVisible(true)] public sealed class DebuggerVisualizerAttribute : Attribute { /// Initializes a new instance of the class, specifying the type name of the visualizer. /// The fully qualified type name of the visualizer. // Token: 0x0600114B RID: 4427 RVA: 0x0004518C File Offset: 0x0004338C public DebuggerVisualizerAttribute(string visualizerTypeName) { this.visualizerName = visualizerTypeName; } /// Initializes a new instance of the class, specifying the type of the visualizer. /// The type of the visualizer. /// v is null. // Token: 0x0600114C RID: 4428 RVA: 0x0004519C File Offset: 0x0004339C public DebuggerVisualizerAttribute(Type visualizer) { if (visualizer == null) { throw new ArgumentNullException("visualizer"); } this.visualizerName = visualizer.AssemblyQualifiedName; } /// Initializes a new instance of the class, specifying the type name of the visualizer and the type name of the visualizer object source. /// The fully qualified type name of the visualizer. /// The fully qualified type name of the visualizer object source. // Token: 0x0600114D RID: 4429 RVA: 0x000451C4 File Offset: 0x000433C4 public DebuggerVisualizerAttribute(string visualizerTypeName, string visualizerObjectSourceTypeName) { this.visualizerName = visualizerTypeName; this.visualizerSourceName = visualizerObjectSourceTypeName; } /// Initializes a new instance of the class, specifying the type name of the visualizer and the type of the visualizer object source. /// The fully qualified type name of the visualizer. /// The type of the visualizer object source. /// /// is null. // 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; } /// Initializes a new instance of the class, specifying the type of the visualizer and the type name of the visualizer object source. /// The type of the visualizer. /// The fully qualified type name of the visualizer object source. /// v is null. // 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; } /// Initializes a new instance of the class, specifying the type of the visualizer and the type of the visualizer object source. /// The type of the visualizer. /// The type of the visualizer object source. /// v is null. /// /// is null. // 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; } /// Gets or sets the description of the visualizer. /// The description of the visualizer. /// 2 // 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; } } /// Gets or sets the target type when the attribute is applied at the assembly level. /// The type that is the target of the visualizer. /// The value cannot be set because it is null. /// 2 // 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; } } /// Gets or sets the fully qualified type name when the attribute is applied at the assembly level. /// The fully qualified type name of the target type. /// 2 // 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; } } /// Gets the fully qualified type name of the visualizer object source. /// The fully qualified type name of the visualizer object source. /// 2 // Token: 0x170002F8 RID: 760 // (get) Token: 0x06001157 RID: 4439 RVA: 0x000452E8 File Offset: 0x000434E8 public string VisualizerObjectSourceTypeName { get { return this.visualizerSourceName; } } /// Gets the fully qualified type name of the visualizer. /// The fully qualified visualizer type name. /// 2 // 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; } }