Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2016-09-24 02:23:41 +0300
committerGitHub <noreply@github.com>2016-09-24 02:23:41 +0300
commitc275012cdaf4da88d4d8a5c64edce5aaf4e35c29 (patch)
tree84ef78c7e5569cb2a5710956f2048f2e95845a96 /src/ILCompiler.DependencyAnalysisFramework
parentac053661f0954598e2670d47acce9943746953d3 (diff)
Make a few writable properties immutable (#1917)
Today I learned: omitting the `private set;` part will make the C# compiler emit a `initonly` backing field (and as such, allow assigning the property in the constructor only).
Diffstat (limited to 'src/ILCompiler.DependencyAnalysisFramework')
-rw-r--r--src/ILCompiler.DependencyAnalysisFramework/src/FirstMarkLogStrategy.cs3
-rw-r--r--src/ILCompiler.DependencyAnalysisFramework/src/FullGraphLogStrategy.cs3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/ILCompiler.DependencyAnalysisFramework/src/FirstMarkLogStrategy.cs b/src/ILCompiler.DependencyAnalysisFramework/src/FirstMarkLogStrategy.cs
index 6657f454c..e55616b20 100644
--- a/src/ILCompiler.DependencyAnalysisFramework/src/FirstMarkLogStrategy.cs
+++ b/src/ILCompiler.DependencyAnalysisFramework/src/FirstMarkLogStrategy.cs
@@ -27,19 +27,16 @@ namespace ILCompiler.DependencyAnalysisFramework
public string Reason
{
get;
- private set;
}
public DependencyNodeCore<DependencyContextType> Reason1
{
get;
- private set;
}
public DependencyNodeCore<DependencyContextType> Reason2
{
get;
- private set;
}
}
diff --git a/src/ILCompiler.DependencyAnalysisFramework/src/FullGraphLogStrategy.cs b/src/ILCompiler.DependencyAnalysisFramework/src/FullGraphLogStrategy.cs
index acabe59f1..38507c871 100644
--- a/src/ILCompiler.DependencyAnalysisFramework/src/FullGraphLogStrategy.cs
+++ b/src/ILCompiler.DependencyAnalysisFramework/src/FullGraphLogStrategy.cs
@@ -27,19 +27,16 @@ namespace ILCompiler.DependencyAnalysisFramework
public string Reason
{
get;
- private set;
}
public DependencyNodeCore<DependencyContextType> Reason1
{
get;
- private set;
}
public DependencyNodeCore<DependencyContextType> Reason2
{
get;
- private set;
}
private static int CombineHashCodes(int h1, int h2)