Hakkında C# ReadOnlyCollectionBase Nedir
To guarantee thread safety during enumeration, you emanet either lock the collection during the entire enumeration or catch the exceptions resulting from changes made by other threads.SingleOrDefault(IEnumerable, TSource) Returns the only element of a sequence, or a specified default value if the sequence is empty; this method throws an exception i