Skip to content

Commit eadad81

Browse files
committed
Performance optimization in readonly FileSystemEntry struct
1 parent b18be6c commit eadad81

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Plugins/SimpleFileBrowser/Scripts/FileBrowserHelpers.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ public readonly struct FileSystemEntry
99
public readonly string Name;
1010
public readonly string Extension;
1111
public readonly FileAttributes Attributes;
12-
13-
public bool IsDirectory { get { return ( Attributes & FileAttributes.Directory ) == FileAttributes.Directory; } }
12+
public readonly bool IsDirectory { get { return ( Attributes & FileAttributes.Directory ) == FileAttributes.Directory; } }
1413

1514
public FileSystemEntry( string path, string name, string extension, bool isDirectory )
1615
{

0 commit comments

Comments
 (0)