Robuta

https://learn.microsoft.com/ja-jp/dotnet/api/system.linq.enumerable.firstordefault?view=netframework-4.8 Enumerable.FirstOrDefault Method (System.Linq) | Microsoft Learn Returns the first element of a sequence, or a default value if no element is found. enumerablemethodsystemlinqmicrosoft https://learn.microsoft.com/ru-ru/dotnet/api/system.linq.enumerable.firstordefault?view=netframework-4.8.1 Enumerable.FirstOrDefault Method (System.Linq) | Microsoft Learn Returns the first element of a sequence, or a default value if no element is found. enumerablemethodsystemlinqmicrosoft https://mongodb.github.io/mongo-csharp-driver/2.12/apidocs/html/M_MongoDB_Driver_IAsyncCursorSourceExtensions_FirstOrDefault__1.htm IAsyncCursorSourceExtensions.FirstOrDefault(TDocument) Method Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents. method https://mongodb.github.io/mongo-csharp-driver/2.13/apidocs/html/M_MongoDB_Driver_IAsyncCursorSourceExtensions_FirstOrDefault__1.htm IAsyncCursorSourceExtensions.FirstOrDefault(TDocument) Method Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents. method https://jaliyaudagedara.blogspot.com/2016/09/use-of-first-firstordefault-and-single.html Jaliya's Blog: Use of First(), FirstOrDefault() and Single(), SingleOrDefault() .NET, ASP.NET Core, Visual Studio, Azure, Jaliya Udagedara s blogusefirstsingle