docs.unity.cn
    Show / Hide Table of Contents

    Class RemoveRangeExtensions

    A set of extension methods for collections

    Inheritance
    Object
    RemoveRangeExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public static class RemoveRangeExtensions

    Methods

    TryRemoveElementsInRange<TValue>(IList<TValue>, Int32, Int32, out Exception)

    Tries to remove a range of elements from the list in the given range.

    Declaration
    [CollectionAccess(CollectionAccessType.ModifyExistingContent)]
    [MustUseReturnValue]
    public static bool TryRemoveElementsInRange<TValue>(this IList<TValue> list, int index, int count, out Exception error)
    Parameters
    Type Name Description
    IList<TValue> list

    The list to remove the range

    Int32 index

    The zero-based starting index of the range of elements to remove

    Int32 count

    The number of elements to remove.

    Exception error

    The exception raised by the implementation

    Returns
    Type Description
    Boolean

    True if succeed, false otherwise

    Type Parameters
    Name Description
    TValue

    The value type stored on the list

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023