We need you! We're working hard on the next version of Developer Fusion -
Let us know what you think we should be up to!
- namespace System.Diagnostics
- {
- using System;
- using System.Runtime.InteropServices;
-
- [Serializable(), AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false)]
- [ComVisible(true)]
- public sealed class DebuggerStepThroughAttribute : Attribute
- {
- public DebuggerStepThroughAttribute()
- {
- }
- }
-
- [Serializable(), AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false)]
- [ComVisible(true)]
- public sealed class DebuggerStepperBoundaryAttribute : Attribute
- {
- public DebuggerStepperBoundaryAttribute()
- {
- }
- }
-
- [Serializable(), AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Constructor, Inherited = false)]
- [ComVisible(true)]
- public sealed class DebuggerHiddenAttribute : Attribute
- {
- public DebuggerHiddenAttribute()
- {
- }
- }
-
- [Serializable(), AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Constructor | AttributeTargets.Struct, Inherited = false)]
- [ComVisible(true)]
- public sealed class DebuggerNonUserCodeAttribute : Attribute
- {
- public DebuggerNonUserCodeAttribute()
- {
- }
- }
-
-
-
-
-
-
-
-
-
- [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module, AllowMultiple = false)]
- [ComVisible(true)]
- public sealed class DebuggableAttribute : Attribute
- {
- [Flags()]
- [ComVisible(true)]
- public enum DebuggingModes
- {
- None = 0,
- Default = 1,
- DisableOptimizations = 256,
- IgnoreSymbolStoreSequencePoints = 2,
- EnableEditAndContinue = 4
- }
-
- private DebuggingModes m_debuggingModes;
-
- public DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled)
- {
- m_debuggingModes = 0;
-
- if (isJITTrackingEnabled) {
- m_debuggingModes |= DebuggingModes.Default;
- }
-
- if (isJITOptimizerDisabled) {
- m_debuggingModes |= DebuggingModes.DisableOptimizations;
- }
- }
-
- public DebuggableAttribute(DebuggingModes modes)
- {
- m_debuggingModes = modes;
- }
-
- public bool IsJITTrackingEnabled {
- get { return ((m_debuggingModes & DebuggingModes.Default) != 0); }
- }
-
- public bool IsJITOptimizerDisabled {
- get { return ((m_debuggingModes & DebuggingModes.DisableOptimizations) != 0); }
- }
-
- public DebuggingModes DebuggingFlags {
- get { return m_debuggingModes; }
- }
- }
-
-
-
-
-
-
-
-
-
-
-
- [ComVisible(true)]
- public enum DebuggerBrowsableState
- {
- Never = 0,
-
-
- Collapsed = 2,
- RootHidden = 3
- }
-
-
-
-
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
- [ComVisible(true)]
- public sealed class DebuggerBrowsableAttribute : Attribute
- {
- private DebuggerBrowsableState state;
- public DebuggerBrowsableAttribute(DebuggerBrowsableState state)
- {
- if (state < DebuggerBrowsableState.Never || state > DebuggerBrowsableState.RootHidden)
- throw new ArgumentOutOfRangeException("state");
-
- this.state = state;
- }
- public DebuggerBrowsableState State {
- get { return state; }
- }
- }
-
-
-
- [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = true)]
- [ComVisible(true)]
- public sealed class DebuggerTypeProxyAttribute : Attribute
- {
- private string typeName;
- private string targetName;
- private Type target;
-
- public DebuggerTypeProxyAttribute(Type type)
- {
- if (type == null) {
- throw new ArgumentNullException("type");
- }
-
- this.typeName = type.AssemblyQualifiedName;
- }
-
- public DebuggerTypeProxyAttribute(string typeName)
- {
- this.typeName = typeName;
- }
- public string ProxyTypeName {
- get { return typeName; }
- }
-
- public Type Target {
-
-
- get { return target; }
- set {
- if (value == null) {
- throw new ArgumentNullException("value");
- }
- targetName = value.AssemblyQualifiedName;
- target = value;
- }
- }
-
- public string TargetTypeName {
- get { return targetName; }
- set { targetName = value; }
- }
-
- }
-
-
-
-
-
-
-
-
-
-
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Delegate | AttributeTargets.Enum | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Assembly, AllowMultiple = true)]
- [ComVisible(true)]
- public sealed class DebuggerDisplayAttribute : Attribute
- {
- private string name;
- private string value;
- private string type;
- private string targetName;
- private Type target;
-
- public DebuggerDisplayAttribute(string value)
- {
- if (value == null) {
- this.value = "";
- }
- else {
- this.value = value;
- }
- name = "";
- type = "";
- }
-
- public string Value {
- get { return this.value; }
- }
-
- public string Name {
- get { return name; }
- set { name = value; }
- }
-
- public string Type {
- get { return type; }
- set { type = value; }
- }
-
- public Type Target {
-
- get { return target; }
- set {
- if (value == null) {
- throw new ArgumentNullException("value");
- }
- targetName = value.AssemblyQualifiedName;
- target = value;
- }
- }
-
- public string TargetTypeName {
- get { return targetName; }
- set { targetName = value; }
- }
-
- }
-
-
- /// <summary>
- /// Signifies that the attributed type has a visualizer which is pointed
- /// to by the parameter type name strings.
- /// </summary>
- [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = true)]
- [ComVisible(true)]
- public sealed class DebuggerVisualizerAttribute : Attribute
- {
- private string visualizerObjectSourceName;
- private string visualizerName;
- private string description;
- private string targetName;
- private Type target;
-
- public DebuggerVisualizerAttribute(string visualizerTypeName)
- {
- this.visualizerName = visualizerTypeName;
- }
- public DebuggerVisualizerAttribute(string visualizerTypeName, string visualizerObjectSourceTypeName)
- {
- this.visualizerName = visualizerTypeName;
- this.visualizerObjectSourceName = visualizerObjectSourceTypeName;
- }
- public DebuggerVisualizerAttribute(string visualizerTypeName, Type visualizerObjectSource)
- {
- if (visualizerObjectSource == null) {
- throw new ArgumentNullException("visualizerObjectSource");
- }
- this.visualizerName = visualizerTypeName;
- this.visualizerObjectSourceName = visualizerObjectSource.AssemblyQualifiedName;
- }
- public DebuggerVisualizerAttribute(Type visualizer)
- {
- if (visualizer == null) {
- throw new ArgumentNullException("visualizer");
- }
- this.visualizerName = visualizer.AssemblyQualifiedName;
- }
- 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.visualizerObjectSourceName = visualizerObjectSource.AssemblyQualifiedName;
- }
- public DebuggerVisualizerAttribute(Type visualizer, string visualizerObjectSourceTypeName)
- {
- if (visualizer == null) {
- throw new ArgumentNullException("visualizer");
- }
- this.visualizerName = visualizer.AssemblyQualifiedName;
- this.visualizerObjectSourceName = visualizerObjectSourceTypeName;
- }
-
- public string VisualizerObjectSourceTypeName {
- get { return visualizerObjectSourceName; }
- }
- public string VisualizerTypeName {
- get { return visualizerName; }
- }
- public string Description {
- get { return description; }
- set { description = value; }
- }
-
- public Type Target {
-
-
- get { return target; }
- set {
- if (value == null) {
- throw new ArgumentNullException("value");
- }
- targetName = value.AssemblyQualifiedName;
- target = value;
- }
- }
-
- public string TargetTypeName {
- get { return targetName; }
- set { targetName = value; }
- }
- }
- }