Show / Hide Table of Contents

Class ObjectList<T>

Generic collection that implements IObjectList interface.

Inheritance
System.Object
System.Collections.Generic.List<T>
ObjectList<T>
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
IObjectList
ISerializableObject
System.Collections.Generic.IReadOnlyCollection<System.Object>
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
Inherited Members
System.Collections.Generic.List<T>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<T>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.Generic.List<T>.Add(T)
System.Collections.Generic.List<T>.System.Collections.IList.Add(System.Object)
System.Collections.Generic.List<T>.AddRange(System.Collections.Generic.IEnumerable<T>)
System.Collections.Generic.List<T>.AsReadOnly()
System.Collections.Generic.List<T>.BinarySearch(System.Int32, System.Int32, T, System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.BinarySearch(T)
System.Collections.Generic.List<T>.BinarySearch(T, System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.Clear()
System.Collections.Generic.List<T>.Contains(T)
System.Collections.Generic.List<T>.System.Collections.IList.Contains(System.Object)
System.Collections.Generic.List<T>.ConvertAll<TOutput>(System.Converter<T, TOutput>)
System.Collections.Generic.List<T>.CopyTo(T[])
System.Collections.Generic.List<T>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.List<T>.CopyTo(System.Int32, T[], System.Int32, System.Int32)
System.Collections.Generic.List<T>.CopyTo(T[], System.Int32)
System.Collections.Generic.List<T>.Exists(System.Predicate<T>)
System.Collections.Generic.List<T>.Find(System.Predicate<T>)
System.Collections.Generic.List<T>.FindAll(System.Predicate<T>)
System.Collections.Generic.List<T>.FindIndex(System.Predicate<T>)
System.Collections.Generic.List<T>.FindIndex(System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindIndex(System.Int32, System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindLast(System.Predicate<T>)
System.Collections.Generic.List<T>.FindLastIndex(System.Predicate<T>)
System.Collections.Generic.List<T>.FindLastIndex(System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindLastIndex(System.Int32, System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.ForEach(System.Action<T>)
System.Collections.Generic.List<T>.GetEnumerator()
System.Collections.Generic.List<T>.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
System.Collections.Generic.List<T>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.List<T>.GetRange(System.Int32, System.Int32)
System.Collections.Generic.List<T>.IndexOf(T)
System.Collections.Generic.List<T>.System.Collections.IList.IndexOf(System.Object)
System.Collections.Generic.List<T>.IndexOf(T, System.Int32)
System.Collections.Generic.List<T>.IndexOf(T, System.Int32, System.Int32)
System.Collections.Generic.List<T>.Insert(System.Int32, T)
System.Collections.Generic.List<T>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.Generic.List<T>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<T>)
System.Collections.Generic.List<T>.LastIndexOf(T)
System.Collections.Generic.List<T>.LastIndexOf(T, System.Int32)
System.Collections.Generic.List<T>.LastIndexOf(T, System.Int32, System.Int32)
System.Collections.Generic.List<T>.Remove(T)
System.Collections.Generic.List<T>.System.Collections.IList.Remove(System.Object)
System.Collections.Generic.List<T>.RemoveAll(System.Predicate<T>)
System.Collections.Generic.List<T>.RemoveAt(System.Int32)
System.Collections.Generic.List<T>.RemoveRange(System.Int32, System.Int32)
System.Collections.Generic.List<T>.Reverse()
System.Collections.Generic.List<T>.Reverse(System.Int32, System.Int32)
System.Collections.Generic.List<T>.Sort()
System.Collections.Generic.List<T>.Sort(System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.Sort(System.Comparison<T>)
System.Collections.Generic.List<T>.ToArray()
System.Collections.Generic.List<T>.TrimExcess()
System.Collections.Generic.List<T>.TrueForAll(System.Predicate<T>)
System.Collections.Generic.List<T>.Capacity
System.Collections.Generic.List<T>.Count
System.Collections.Generic.List<T>.System.Collections.IList.IsFixedSize
System.Collections.Generic.List<T>.System.Collections.Generic.ICollection<T>.IsReadOnly
System.Collections.Generic.List<T>.System.Collections.IList.IsReadOnly
System.Collections.Generic.List<T>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.List<T>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.List<T>.Item[System.Int32]
System.Collections.Generic.List<T>.System.Collections.IList.Item[System.Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public class ObjectList<T> : List<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IObjectList, ISerializableObject, IReadOnlyCollection<object>, IEnumerable<object>, IEnumerable
Type Parameters
Name Description
T

Item type.

Explicit Interface Implementations

IEnumerable<Object>.GetEnumerator()

Declaration
IEnumerator<object> IEnumerable<object>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Object>

ISerializableObject.Deserialize(DataReader)

Deserializes own state using specified data reader.

Declaration
void ISerializableObject.Deserialize(DataReader dataReader)
Parameters
Type Name Description
DataReader dataReader

The data reader.

ISerializableObject.Serialize(DataWriter)

Serializes own state using specified data writer.

Declaration
void ISerializableObject.Serialize(DataWriter dataWriter)
Parameters
Type Name Description
DataWriter dataWriter

The data writer.

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
IObjectList
ISerializableObject
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

BaseSerializableObjectUtilities.SerializeToJson(ISerializableObject, Stream)
CollectionUtilities.AddRange<T>(ICollection<T>, IEnumerable<T>)
CollectionUtilities.RemoveRange<T>(ICollection<T>, IEnumerable<T>)
CollectionUtilities.AddIfNotExists<T>(ICollection<T>, T)
CollectionUtilities.AddRangeIfNotExists<T>(ICollection<T>, IEnumerable<T>)
CollectionUtilities.IsNotEmpty(IEnumerable)
CollectionUtilities.IsEmpty(IEnumerable)
CollectionUtilities.IsNullOrEmpty(IEnumerable)
CollectionUtilities.IsNotNullOrEmpty(IEnumerable)
ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX