src/Shared/EntityFramework/Core/Common/Utils/Set.cs
// <summary>
// Returns a readonly version of this set.
// </summary>
Returns a readonly version of this set.
Returns a readonly version of this set .
internal Set<TElement> AsReadOnly()
        {
            if (_isReadOnly)
            {
                return this;
            }
            var copy = new Set<TElement>(this);
            copy._isReadOnly = true;
            return copy;
        }
internal Set < TElement > AsReadOnly ( ) { if ( _isReadOnly ) { return this ; } var copy = new Set < TElement > ( this ) ; copy . _isReadOnly = true ; return copy ; }
Returns a readonly version of this set.
Returns a readonly version of this set .
// once it's readonly, it's always readonly