diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-08-16 23:55:01 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-08-18 08:01:54 +0300 |
commit | c48dd0608d2403a6c5620f92ba18f151a645a349 (patch) | |
tree | 476983e30b458a9db12b8b12f38fc28ed5a170d9 /netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs | |
parent | 2e9134f1a681faaa8432f13f8250f6e79a145964 (diff) |
Fix IDE0025 (use expression body for properties)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs')
-rw-r--r-- | netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs b/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs index cf962928553..cb9b12051f1 100644 --- a/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs +++ b/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs @@ -227,9 +227,9 @@ namespace System.Runtime.Loader public static AssemblyLoadContext Default => DefaultAssemblyLoadContext.s_loadContext; - public bool IsCollectible { get { return _isCollectible;} } + public bool IsCollectible => _isCollectible; - public string? Name { get { return _name;} } + public string? Name => _name; public override string ToString() => "\"" + Name + "\" " + GetType().ToString() + " #" + _id; @@ -468,10 +468,7 @@ namespace System.Runtime.Loader /// /// For more details see https://github.com/dotnet/coreclr/blob/master/Documentation/design-docs/AssemblyLoadContext.ContextualReflection.md /// </remarks> - public static AssemblyLoadContext? CurrentContextualReflectionContext - { - get { return s_asyncLocalCurrent?.Value; } - } + public static AssemblyLoadContext? CurrentContextualReflectionContext => s_asyncLocalCurrent?.Value; private static void SetCurrentContextualReflectionContext(AssemblyLoadContext? value) { |