Lucene.Net.Store.MockDirectoryWrapper.MustSync C# (CSharp) Method

MustSync() private method

Returns true if #in must sync its files. Currently, only NRTCachingDirectory requires sync'ing its files because otherwise they are cached in an internal RAMDirectory. If other directories require that too, they should be added to this method.
private MustSync ( ) : bool
return bool
        private bool MustSync()
        {
            Directory @delegate = @in;
            while (@delegate is FilterDirectory)
            {
                @delegate = ((FilterDirectory)@delegate).Delegate;
            }
            return @delegate is NRTCachingDirectory;
        }