| Visual Basic (Declaration) | |
|---|---|
Public Structure LurchTable.ValueCollection.Enumerator
(Of TKey,TValue)
Inherits System.ValueType | |
| C# | |
|---|---|
public struct LurchTable.ValueCollection.Enumerator<TKey,TValue> : System.ValueType | |
- TKey
- TValue
Library/Library.Test/TestLurchTable.cs
| C# | Copy Code |
|---|---|
var sample = GetSample(); var test = CreateSample(sample); int ix = 0; foreach (var value in test.Values) Assert.AreEqual(sample[ix++].Value, value); | |
| VB.NET | Copy Code |
|---|---|
Dim sample As var = GetSample() Dim test As var = CreateSample(sample) Dim ix As Integer = 0 For Each value As var In test.Values Assert.AreEqual(sample(System.Math.Max(System.Threading.Interlocked.Increment(ix),ix - 1)).Value, value) Next | |
System.Object
System.ValueType
CSharpTest.Net.Collections.LurchTable`2.ValueCollection.Enumerator<TKey,TValue>
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7