You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Collections/Iterators/ListIterator.cs

37 lines
675 B

namespace Connected.Collections.Iterators;
internal class ListIterator : IIterator
{
public ListIterator(object value)
{
}
public object? Result => throw new NotImplementedException();
public object Current => throw new NotImplementedException();
public static bool CanHandle(object value)
{
var arguments = value.GetType().GetGenericArguments();
var list = typeof(IList<>).MakeGenericType(arguments);
return value.GetType() == list;
}
public void Add(object value)
{
throw new NotImplementedException();
}
public bool MoveNext()
{
throw new NotImplementedException();
}
public void Reset()
{
throw new NotImplementedException();
}
}