Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2275 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
6 changed files with 499 additions and 6 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Debugger.Tests.TestPrograms |
||||
{ |
||||
public class GenericDictionary |
||||
{ |
||||
public static void Main() |
||||
{ |
||||
Dictionary<string, int> dict = new Dictionary<string, int>(); |
||||
dict.Add("one",1); |
||||
dict.Add("two",2); |
||||
dict.Add("three",3); |
||||
System.Diagnostics.Debugger.Break(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,450 @@
@@ -0,0 +1,450 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<DebuggerTests> |
||||
<Test name="GenericDictionary"> |
||||
<ProcessStarted /> |
||||
<ModuleLoaded symbols="False">mscorlib.dll</ModuleLoaded> |
||||
<ModuleLoaded symbols="True">GenericDictionary.exe</ModuleLoaded> |
||||
<DebuggingPaused>Break</DebuggingPaused> |
||||
<ObjectDump name="dict"> |
||||
<LocalVariable> |
||||
<Name>dict</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.Collections.Generic.Dictionary<System.String,System.Int32>}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Collections.Generic.Dictionary<System.String,System.Int32></Type> |
||||
</LocalVariable> |
||||
</ObjectDump> |
||||
<DebuggingPaused>EvalComplete</DebuggingPaused> |
||||
<DebuggingPaused>EvalComplete</DebuggingPaused> |
||||
<DebuggingPaused>EvalComplete</DebuggingPaused> |
||||
<DebuggingPaused>EvalComplete</DebuggingPaused> |
||||
<DebuggingPaused>EvalComplete</DebuggingPaused> |
||||
<ObjectDump name="dict members"> |
||||
<NamedValueCollection> |
||||
<Count>16</Count> |
||||
<Items> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>buckets</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>buckets</Name> |
||||
<IsArray>True</IsArray> |
||||
<ArrayLenght>3</ArrayLenght> |
||||
<ArrayRank>1</ArrayRank> |
||||
<ArrayDimensions>System.UInt32[]</ArrayDimensions> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.Int32[]}</AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Int32[]</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>entries</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>entries</Name> |
||||
<IsArray>True</IsArray> |
||||
<ArrayLenght>3</ArrayLenght> |
||||
<ArrayRank>1</ArrayRank> |
||||
<ArrayDimensions>System.UInt32[]</ArrayDimensions> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{Entry<System.String,System.Int32>[]}</AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>Entry<System.String,System.Int32>[]</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>count</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>count</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>3</AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>True</IsPrimitive> |
||||
<IsInteger>True</IsInteger> |
||||
<PrimitiveValue>3</PrimitiveValue> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Int32</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>version</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>version</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>3</AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>True</IsPrimitive> |
||||
<IsInteger>True</IsInteger> |
||||
<PrimitiveValue>3</PrimitiveValue> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Int32</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>freeList</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>freeList</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>-1</AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>True</IsPrimitive> |
||||
<IsInteger>True</IsInteger> |
||||
<PrimitiveValue>-1</PrimitiveValue> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Int32</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>freeCount</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>freeCount</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>0</AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>True</IsPrimitive> |
||||
<IsInteger>True</IsInteger> |
||||
<PrimitiveValue>0</PrimitiveValue> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Int32</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>comparer</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>comparer</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.Collections.Generic.GenericEqualityComparer<System.String>}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Collections.Generic.GenericEqualityComparer<System.String></Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>keys</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>keys</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>True</IsNull> |
||||
<AsString><null></AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>KeyCollection<System.String,System.Int32></Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>values</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>values</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>True</IsNull> |
||||
<AsString><null></AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>ValueCollection<System.String,System.Int32></Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>_syncRoot</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>_syncRoot</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>True</IsNull> |
||||
<AsString><null></AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Object</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<FieldInfo> |
||||
<IsLiteral>False</IsLiteral> |
||||
<IsPrivate>True</IsPrivate> |
||||
<IsPublic>False</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>m_siInfo</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</FieldInfo> |
||||
</MemberInfo> |
||||
<Name>m_siInfo</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>True</IsNull> |
||||
<AsString><null></AsString> |
||||
<IsObject>False</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.Runtime.Serialization.SerializationInfo</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<PropertyInfo> |
||||
<IsPrivate>False</IsPrivate> |
||||
<IsPublic>True</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>Comparer</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</PropertyInfo> |
||||
</MemberInfo> |
||||
<Name>Comparer</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.TypeLoadException}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.TypeLoadException</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<PropertyInfo> |
||||
<IsPrivate>False</IsPrivate> |
||||
<IsPublic>True</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>Count</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</PropertyInfo> |
||||
</MemberInfo> |
||||
<Name>Count</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.TypeLoadException}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.TypeLoadException</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<PropertyInfo> |
||||
<IsPrivate>False</IsPrivate> |
||||
<IsPublic>True</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>Keys</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</PropertyInfo> |
||||
</MemberInfo> |
||||
<Name>Keys</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.TypeLoadException}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.TypeLoadException</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<PropertyInfo> |
||||
<IsPrivate>False</IsPrivate> |
||||
<IsPublic>True</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>Values</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</PropertyInfo> |
||||
</MemberInfo> |
||||
<Name>Values</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.TypeLoadException}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.TypeLoadException</Type> |
||||
</MemberValue> |
||||
<MemberValue> |
||||
<MemberInfo> |
||||
<PropertyInfo> |
||||
<IsPrivate>False</IsPrivate> |
||||
<IsPublic>True</IsPublic> |
||||
<IsStatic>False</IsStatic> |
||||
<Name>Item</Name> |
||||
<DeclaringType>System.Collections.Generic.Dictionary<System.String,System.Int32></DeclaringType> |
||||
<Module>mscorlib.dll</Module> |
||||
</PropertyInfo> |
||||
</MemberInfo> |
||||
<Name>Item</Name> |
||||
<IsArray>False</IsArray> |
||||
<ArrayLenght exception="Value is not an array" /> |
||||
<ArrayRank exception="Value is not an array" /> |
||||
<ArrayDimensions exception="Value is not an array" /> |
||||
<IsNull>False</IsNull> |
||||
<AsString>{System.TypeLoadException}</AsString> |
||||
<IsObject>True</IsObject> |
||||
<IsPrimitive>False</IsPrimitive> |
||||
<IsInteger>False</IsInteger> |
||||
<PrimitiveValue exception="Value is not a primitive type" /> |
||||
<HasExpired>False</HasExpired> |
||||
<Type>System.TypeLoadException</Type> |
||||
</MemberValue> |
||||
</Items> |
||||
</NamedValueCollection> |
||||
</ObjectDump> |
||||
<ProcessExited /> |
||||
</Test> |
||||
</DebuggerTests> |
Loading…
Reference in new issue