public class TestClass
{
public void TestMethod()
{
System.Collections.Generic.List<TestClass1> testClassList = new List<TestClass1>();
testClassList.Add(new TestClass1() { TestVariable = 1, TestVariable1 = "TestValue" });
testClassList.Add(new TestClass1() { TestVariable = 1, TestVariable1 = "TestValue" });
testClassList.Add(new TestClass1() { TestVariable = 1, TestVariable1 = "TestValue" });
System.Collections.Generic.IEnumerable<TestClass1> testClassEnumerable = testClassList.AsEnumerable();
}
}
public class TestClass1
{
public int TestVariable { get; set; }
public string TestVariable1 { get; set; }
}
public class TestClass2
{
public int TestVariable { get; set; }
public string TestVariable1 { get; set; }
}