DebuggerTypeProxyAttribute コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)


デバッガは、対象の型の変数を表示する必要が生じるたびに型プロキシ クラスの新しいインスタンスを作成します。その結果、パフォーマンスが低下する可能性があります。したがって、コンストラクタでは必要最小限の作業のみを実行するようにしてください。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DebuggerTypeProxyAttribute コンストラクタ (Type)
アセンブリ: mscorlib (mscorlib.dll 内)



デバッガは、対象の型の変数を表示する必要が生じるたびに型プロキシ クラスの新しいインスタンスを作成します。その結果、パフォーマンスが低下する可能性があります。したがって、コンストラクタでは必要最小限の作業のみを実行するようにしてください。

DebuggerTypeProxyAttribute(Type) コンストラクタを使用してデバッガ表示プロキシを指定する方法を次のコード例に示します。このコード例は、DebuggerDisplayAttribute クラスのトピックで取り上げているコード例の一部分です。
[DebuggerTypeProxy(typeof(HashtableDebugView))] class MyHashtable : Hashtable { private const string TestString = "This should not appear in the debug window."; internal class HashtableDebugView { private Hashtable hashtable; public const string TestString = "This should appear in the debug window."; public HashtableDebugView(Hashtable hashtable) { this.hashtable = hashtable; } [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public KeyValuePairs[] Keys { get { KeyValuePairs[] keys = new KeyValuePairs[hashtable.Count]; int i = 0; foreach(object key in hashtable.Keys) { keys[i] = new KeyValuePairs(hashtable, key, hashtable[key]); i++; } return keys; } } } }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DebuggerTypeProxyAttribute コンストラクタ
- DebuggerTypeProxyAttribute コンストラクタのページへのリンク