File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -38,18 +38,14 @@ public TranslationUnit(string file) : this()
38
38
private string fileNameWithoutExtension ;
39
39
40
40
/// Contains the name of the file.
41
- public string FileName
42
- {
43
- get { return ! IsValid ? FilePath : fileName ?? ( fileName = Path . GetFileName ( FilePath ) ) ; }
44
- }
41
+ public string FileName => ! IsValid ? FilePath : fileName ??= Path . GetFileName ( FilePath ) ;
45
42
46
43
/// Contains the name of the module.
47
44
public string FileNameWithoutExtension
48
45
{
49
46
get
50
47
{
51
- return fileNameWithoutExtension ??
52
- ( fileNameWithoutExtension = Path . GetFileNameWithoutExtension ( FileName ) ) ;
48
+ return fileNameWithoutExtension ??= Path . GetFileNameWithoutExtension ( FileName ) ;
53
49
}
54
50
}
55
51
@@ -83,8 +79,7 @@ public string FileRelativePath
83
79
get
84
80
{
85
81
if ( ! IsValid ) return string . Empty ;
86
- return fileRelativePath ??
87
- ( fileRelativePath = Path . Combine ( FileRelativeDirectory , FileName ) ) ;
82
+ return fileRelativePath ??= Path . Combine ( FileRelativeDirectory , FileName ) ;
88
83
}
89
84
}
90
85
You can’t perform that action at this time.
0 commit comments