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:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Lazy.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Lazy.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Lazy.cs b/src/System.Private.CoreLib/shared/System/Lazy.cs
index 6410c2e28..02122ca05 100644
--- a/src/System.Private.CoreLib/shared/System/Lazy.cs
+++ b/src/System.Private.CoreLib/shared/System/Lazy.cs
@@ -119,7 +119,7 @@ namespace System
default:
Debug.Fail("Invalid logic; State should always have a valid value");
- return default(LazyThreadSafetyMode);
+ return default;
}
}
@@ -454,7 +454,7 @@ namespace System
{
if (!IsValueCreated)
{
- return default(T);
+ return default;
}
return _value;
}