Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SafeList<T> Class

    Namespace: Stride.Core.Collections
    Assembly: Stride.Core.dll

    A list to ensure that all items are not null.

    System.Object → ConstrainedList<T> → SafeList<T>
    Derived from SafeList<T>: ColorTransformCollection

    [DataSerializer(typeof(ListAllSerializer<, >), Mode = DataSerializerGenericMode.TypeAndGenericArguments)]
    public class SafeList<T> : ConstrainedList<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : class
    Type Parameters
    Name Description
    T

    Type of the item

    Name Description
    Constructors
    SafeList()

    Initializes a new instance of the SafeList<T> class.

    | Improve this Doc View Source

    Constructors


    SafeList()

    Initializes a new instance of the SafeList<T> class.

    public SafeList()

    Inherited Members

    ConstrainedList<T>.ThrowException
    ConstrainedList<T>.Constraint
    ConstrainedList<T>.GetEnumerator()
    ConstrainedList<T>.IEnumerable<T>.GetEnumerator()
    ConstrainedList<T>.IEnumerable.GetEnumerator()
    ConstrainedList<T>.Add(T)
    ConstrainedList<T>.Clear()
    ConstrainedList<T>.Contains(T)
    ConstrainedList<T>.CopyTo(T[], Int32)
    ConstrainedList<T>.Remove(T)
    ConstrainedList<T>.Count
    ConstrainedList<T>.IsReadOnly
    ConstrainedList<T>.IndexOf(T)
    ConstrainedList<T>.Insert(Int32, T)
    ConstrainedList<T>.RemoveAt(Int32)
    ConstrainedList<T>.Item[Int32]

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<T>)
    CollectionExtensions.SwapRemove<T>(IList<T>, T)
    CollectionExtensions.SwapRemoveAt<T>(IList<T>, Int32)
    CollectionExtensions.GetItemOrNull<T>(IList<T>, Int32)
    CollectionExtensions.IndexOf<T>(IReadOnlyList<T>, T)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.NotNull<T>(IEnumerable<T>)
    EnumerableExtensions.ToHashCode<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation