• ASP.NET Core API
  • Core API
  • Mail API
  • Json API
  • Core API
  • Cuemon.Collections.Generic
  • ListUtilityExtensions

    Show / Hide Table of Contents
    • Cuemon
      • ActionFactory
      • ActionFactory<TTuple>
      • ArgumentEmptyException
      • AssignmentOperator
      • AssignmentUtility
      • ByteConverter
      • ByteConverterExtensions
      • ByteExtensions
      • ByteUtility
      • ByteUtilityExtensions
      • CasingMethod
      • CharConverter
      • CharConverterExtensions
      • Condition
      • ConditionBuilder<TTuple>
      • ConditionExtensions
      • Converter
      • ConverterExtensions
      • ConvertibleConverter
      • ConvertibleConverterExtensions
      • DataPair
      • DataPair<T>
      • DateSpan
      • DateTimeConverter
      • DateTimeConverterExtensions
      • DateTimeExtensions
      • DateTimeFormatPattern
      • DayPart
      • DayParts
      • DelegateUtility
      • DelegateUtilityExtensions
      • DoubleConverter
      • DoubleConverterExtensions
      • EnumUtility
      • EnumUtilityExtensions
      • EventUtility
      • ExceptionUtility
      • ExceptionUtilityExtensions
      • FuncFactory
      • FuncFactory<TTuple, TResult>
      • GuidConverter
      • GuidConverterExtensions
      • GuidFormats
      • GuidUtility
      • Hierarchy<T>
      • HierarchyExtensions
      • HierarchySerializer
      • HierarchyUtility
      • HorizontalDirection
      • IData
      • IHierarchy<T>
      • IndexMapping
      • Initializer
      • InitializerBuilder<T>
      • IntegerExtensions
      • IWrapper<T>
      • LatencyException
      • LoopUtility
      • Mapping
      • MappingExtensions
      • MethodWrappedException
      • NumberUtility
      • NumberUtilityExtensions
      • ObjectConverter
      • PreambleSequence
      • RandomSeverity
      • RelationalOperator
      • RoundOffAccuracy
      • SortOrder
      • StandardizedDateTimeFormatPattern
      • StringConverter
      • StringConverterExtensions
      • StringExtensions
      • StringFormatter
      • StringReplacePair
      • StringUtility
      • StringUtilityExtensions
      • StructUtility
      • StructUtilityExtensions
      • TaskActionFactory
      • TaskActionFactory<TTuple>
      • TaskFuncFactory
      • TaskFuncFactory<TTuple, TResult>
      • Template
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8, T9>
      • Template<T1, T2, T3, T4, T5, T6, T7, T8>
      • Template<T1, T2, T3, T4, T5, T6, T7>
      • Template<T1, T2, T3, T4, T5, T6>
      • Template<T1, T2, T3, T4, T5>
      • Template<T1, T2, T3, T4>
      • Template<T1, T2, T3>
      • Template<T1, T2>
      • Template<T1>
      • TemplateFactory<TTuple>
      • TesterDoer
      • TesterFunc<T, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, T7, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, T6, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, T5, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, T4, TResult, TSuccess>
      • TesterFunc<T1, T2, T3, TResult, TSuccess>
      • TesterFunc<T1, T2, TResult, TSuccess>
      • TesterFunc<TResult, TSuccess>
      • TesterFuncFactory
      • TesterFuncFactory<TTuple, TResult, TSuccess>
      • TesterFuncUtility
      • TimeRange
      • TimeSpanConverter
      • TimeSpanConverterExtensions
      • TimeSpanExtensions
      • TimeUnit
      • TransientFaultEvidence
      • TransientFaultException
      • TransientOperation
      • TransientOperationOptions
      • TupleUtility
      • Tweaker
      • TweakerExtensions
      • TypeArgumentException
      • TypeArgumentOutOfRangeException
      • TypeCodeConverter
      • TypeCodeConverterExtensions
      • TypeExtensions
      • TypeUtility
      • TypeUtilityExtensions
      • UriConverter
      • UriScheme
      • UriSchemeConverter
      • UriUtility
      • Validator
      • VersionUtility
      • VerticalDirection
      • Wrapper
      • Wrapper<T>
      • WrapperExtensions
    • Cuemon.Collections
      • DataPairCollection
      • DataPairDictionary
    • Cuemon.Collections.Generic
      • CollectionExtensions
      • ComparisonUtility
      • ConditionalCollection<T>
      • DictionaryConverter
      • DictionaryConverterExtensions
      • DictionaryExtensions
      • DictionaryUtility
      • DictionaryUtilityExtensions
      • DynamicComparer
      • DynamicEqualityComparer
      • EnumerableConverter
      • EnumerableConverterExtensions
      • EnumerableExtensions
      • EnumerableSizeComparer<T>
      • EnumerableUtility
      • EnumerableUtilityExtensions
      • ISortableTable<TSource>
      • ListExtensions
      • ListUtility
      • ListUtilityExtensions
      • PagedCollection
      • PagedCollection<T>
      • PagedCollectionExtensions
      • PagedSettings
      • PartitionCollection<T>
      • PartitionCollectionExtensions
      • ReferenceComparer<T>
    • Cuemon.Collections.Specialized
      • NameValueCollectionConverter
      • NameValueCollectionConverterExtensions
      • NameValueCollectionUtility
    • Cuemon.Configuration
      • Configurable<TOptions>
      • IConfigurable<TOptions>
    • Cuemon.Data
      • BulkCopyDataReader
      • DataAdapter
      • DataAdapterEventArgs
      • DataAdapterException
      • DataCommand
      • DataConnection
      • DataDependency
      • DataManager
      • DataParameterEqualityComparer
      • DataTransfer
      • DataTransferColumn
      • DataTransferColumnCollection
      • DataTransferExtensions
      • DataTransferRow
      • DataTransferRowCollection
      • DataTransferSorter
      • DataWatcher
      • DbColumn
      • IDataCommand
      • IDataConnection
      • InOperator<T>
      • QueryBuilder
      • QueryFormat
      • QueryInsertAction
      • QueryType
      • QueryUtility
      • StringDataReader
      • UniqueIndexViolationException
    • Cuemon.Data.CsvClient
      • CsvDataReader
    • Cuemon.Data.SqlClient
      • SqlDataManager
      • SqlInOperator<T>
      • SqlQueryBuilder
    • Cuemon.Data.XmlClient
      • XmlDataReader
    • Cuemon.Diagnostics
      • EventLogEntryType
      • ExceptionDescriptor
      • ExceptionDescriptorAttribute
      • FileVersionInfoExtensions
      • Profiler
      • ProfilerOptions
      • TimeMeasure
      • TimeMeasureOptions
      • TimeMeasureProfiler
      • TimeMeasureProfiler<TResult>
    • Cuemon.Globalization
      • IMessageLocalizer
      • RegionInfoExtensions
      • World
    • Cuemon.Integrity
      • CacheValidator
      • CacheValidatorExtensions
      • CacheValidatorOptions
      • ChecksumBuilder
      • ChecksumBuilderExtensions
      • ChecksumBuilderOptions
      • ChecksumMethod
      • ChecksumResult
      • ChecksumStrength
      • ICacheableEntity
      • ICacheableIntegrity
      • ICacheableTimestamp
    • Cuemon.IO
      • FileInfoConverter
      • JsonStreamConverter
      • StreamConverter
      • StreamConverterExtensions
      • StreamExtensions
      • StreamUtility
      • StreamUtilityExtensions
      • StreamWriterOptions
      • StreamWriterUtility
      • TextReaderConverter
      • TextReaderConverterExtensions
    • Cuemon.IO.Compression
      • CompressionType
      • CompressionUtility
      • CompressionUtilityExtensions
    • Cuemon.Messaging
      • DynamicCorrelation
      • DynamicRequest
      • ICorrelation
      • IRequest
    • Cuemon.Net
      • HttpStatusCodeExtensions
      • NetDependency
      • NetWatcher
    • Cuemon.Net.Http
      • HttpManager
      • HttpManagerExtensions
      • HttpManagerOptions
      • HttpMethodConverter
      • HttpMethodExtensions
      • HttpMethods
      • HttpRequestOptions
    • Cuemon.Reflection
      • ActivatorUtility
      • AssemblyUtility
      • AssemblyUtilityExtensions
      • MemberInfoExtensions
      • MethodBaseConverter
      • MethodBaseConverterExtensions
      • MethodDescriptor
      • ObjectHierarchyOptions
      • ParameterSignature
      • ReflectionUtility
      • ReflectionUtilityExtensions
      • ResourceMatch
    • Cuemon.Runtime
      • Dependency
      • DependencyEventArgs
      • IDependency
      • Watcher
      • WatcherEventArgs
    • Cuemon.Runtime.Caching
      • CacheCollection
      • CacheEventArgs
      • CachingManager
    • Cuemon.Runtime.Serialization
      • JsonConverter
      • JsonInstance
      • JsonInstanceCollection
      • JsonWriter
      • XmlJsonInstance
    • Cuemon.Security
      • Obfuscator
      • ObfuscatorMapping
      • SecureXmlObfuscator
      • SecurityToken
      • SecurityTokenSettings
      • SecurityUtility
      • XmlObfuscator
    • Cuemon.Security.Cryptography
      • AdvancedEncryptionStandardKeySize
      • AdvancedEncryptionStandardUtility
      • CyclicRedundancyCheck
      • CyclicRedundancyCheck32
      • HashAlgorithmType
      • HashOptions
      • HashResult
      • HashUtility
      • HashUtilityExtensions
      • HmacAlgorithmType
      • HmacUtility
      • HmacUtilityExtensions
      • KeyedHashOptions
      • PolynomialRepresentation
      • StreamHashOptions
      • StreamKeyedHashOptions
      • StringHashOptions
      • StringKeyedHashOptions
      • StrongNumberUtility
    • Cuemon.Security.Web
      • JsonWebToken
      • JsonWebTokenHashAlgorithm
      • JsonWebTokenHashAlgorithmConverter
      • JsonWebTokenHeader
      • JsonWebTokenPayload
    • Cuemon.Serialization
      • ExceptionDescriptorSerializationOptions
    • Cuemon.Serialization.Formatters
      • Formatter<TFormat>
      • FormatterExtensions
    • Cuemon.Serialization.Xml
      • DynamicXmlConverter
      • DynamicXmlSerializable
      • XmlConvert
      • XmlReaderExtensions
      • XmlSerializer
      • XmlSerializerSettings
      • XmlSerializerSettingsExtensions
      • XmlWriterExtensions
    • Cuemon.Serialization.Xml.Converters
      • DefaultXmlConverter
      • XmlConverter
      • XmlConverterListExtensions
    • Cuemon.Serialization.Xml.Formatters
      • XmlFormatter
      • XmlFormatterOptions
    • Cuemon.Text
      • EncodingConverter
      • EncodingExtensions
      • EncodingOptions
      • EncodingUtility
      • FallbackEncodingOptions
    • Cuemon.Threading
      • AsyncOptions
      • ParallelTasks
      • ThreadPoolUtility
    • Cuemon.Threading.Tasks
      • TaskExtensions
    • Cuemon.Web
      • FieldValueFilter
      • FieldValueSeparator
      • FormConverter
      • FormUtility
      • HeadersConverter
      • HeadersUtility
      • HttpUtility
      • HttpUtilityExtensions
      • QueryStringConverter
      • QueryStringUtility
    • Cuemon.Web.Security
      • WebSecurityUtility
      • WebSecurityUtilityExtensions
    • Cuemon.Xml
      • XmlConvertExtensions
      • XmlCopyOptions
      • XmlDocumentConverter
      • XmlEncodingUtility
      • XmlReaderConverter
      • XmlReaderUtility
      • XmlReaderUtilityExtensions
      • XmlStreamConverter
      • XmlUtility
      • XmlUtilityExtensions
      • XmlWriterUtility
      • XmlWriterUtilityExtensions
    • Cuemon.Xml.Linq
      • XElementExtensions
    • Cuemon.Xml.Serialization
      • SerializableOrder
      • XmlQualifiedEntity
      • XmlWrapper
    • Cuemon.Xml.XPath
      • XPathNavigableConverter

    Class ListUtilityExtensions

    This is an extension implementation of the most common methods on the ListUtility class.

    Inheritance
    System.Object
    ListUtilityExtensions
    Namespace: Cuemon.Collections.Generic
    Assembly: Cuemon.Core.dll
    Syntax
    public static class ListUtilityExtensions

    Methods

    | Improve this Doc

    HasIndex<TSource>(IList<TSource>, Int32)

    Determines whether the elements of the System.Collections.Generic.IList<T> is within the range of the index.

    Declaration
    public static bool HasIndex<TSource>(this IList<TSource> elements, int index)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<TSource> elements

    The elements of the System.Collections.Generic.IList<T>.

    System.Int32 index

    The index to find.

    Returns
    Type Description
    System.Boolean

    true if the specified index is within the range of the elements; otherwise, false.

    Type Parameters
    Name Description
    TSource

    The type of elements in the System.Collections.Generic.IList<T>.

    Exceptions
    Type Condition
    System.ArgumentNullException

    elements is null.

    | Improve this Doc

    Next<TSource>(IList<TSource>, Int32)

    Returns the next element of elements relative to index, or the last element of elements if index is equal or greater than System.Collections.Generic.ICollection<T>.Count.

    Declaration
    public static TSource Next<TSource>(this IList<TSource> elements, int index)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<TSource> elements

    The elements, relative to index, to return the next element of.

    System.Int32 index

    The index of which to advance to the next element from.

    Returns
    Type Description
    TSource

    default(TSource) if index is equal or greater than System.Collections.Generic.ICollection<T>.Count; otherwise the next element of elements relative to index.

    Type Parameters
    Name Description
    TSource

    The type of elements in the System.Collections.Generic.IList<T>.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is less than 0.

    | Improve this Doc

    Previous<TSource>(IList<TSource>, Int32)

    Returns the previous element of elements relative to index, or the first or last element of elements if index is equal, greater or lower than System.Collections.Generic.ICollection<T>.Count.

    Declaration
    public static TSource Previous<TSource>(this IList<TSource> elements, int index)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<TSource> elements

    The elements, relative to index, to return the previous element of.

    System.Int32 index

    The index of which to advance to the previous element from.

    Returns
    Type Description
    TSource

    default(TSource) if index is equal, greater or lower than System.Collections.Generic.ICollection<T>.Count; otherwise the previous element of elements relative to index.

    Type Parameters
    Name Description
    TSource

    The type of elements in the System.Collections.Generic.IList<T>.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is less than 0.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • HasIndex<TSource>(IList<TSource>, Int32)
      • Next<TSource>(IList<TSource>, Int32)
      • Previous<TSource>(IList<TSource>, Int32)
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX