Show / Hide Table of Contents

Class IntExtensions.IterationInRange.Enumerator

This struct is allocation free and allows to iterate through wrapped range. By example to go in range 0-10 from 7 to 3. It will return 7, 8, 9, 0, 1, 2

Inheritance
System.Object
IntExtensions.IterationInRange.Enumerator
Implements
System.Collections.Generic.IEnumerator<System.Int32>
System.Collections.IEnumerator
System.IDisposable
Namespace: Eco.Shared.Math
Assembly: Eco.Shared.dll
Syntax
public sealed class Enumerator : ValueType, IEnumerator<int>, IEnumerator, IDisposable

Properties

Current

Declaration
public int Current { get; }
Property Value
Type Description
System.Int32

Methods

Dispose()

Declaration
public void Dispose()

MoveNext()

Declaration
public bool MoveNext()
Returns
Type Description
System.Boolean

Implements

System.Collections.Generic.IEnumerator<>
System.Collections.IEnumerator
System.IDisposable

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾