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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Van Patten <jvp@justinvp.com>2017-01-26 09:14:27 +0300
committerKarel Zikmund <karelz@users.noreply.github.com>2017-01-26 09:14:27 +0300
commitbcdf9da94ca6accfc17bc782c50c6ba1b0631b68 (patch)
treeb08accb22518a935cfaac4ae3829406964d31032 /src/System.Runtime.Extensions/ref
parent53c4b68a225d90db216b672ce5674a8ac139314c (diff)
Use `throw null` in refs (#15499)
Use `throw null` in refs instead of `return default(T)` or `return 0`.
Diffstat (limited to 'src/System.Runtime.Extensions/ref')
-rw-r--r--src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs
index 8ff414dcb6..9900364b10 100644
--- a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs
+++ b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs
@@ -835,7 +835,7 @@ namespace System
public static float Round(float x, int digits) { throw null; }
public static float Round(float x, int digits, System.MidpointRounding mode) { throw null; }
public static float Round(float x, System.MidpointRounding mode) { throw null; }
- public static int Sign(float x) { return default(int); }
+ public static int Sign(float x) { throw null; }
public static float Sin(float x) { throw null; }
public static float Sinh(float x) { throw null; }
public static float Sqrt(float x) { throw null; }
@@ -1177,7 +1177,7 @@ namespace System.IO
public static string GetTempPath() { throw null; }
public static bool HasExtension(string path) { throw null; }
public static bool IsPathRooted(string path) { throw null; }
- public static string GetRelativePath(string relativeTo, string path) { return default(string); }
+ public static string GetRelativePath(string relativeTo, string path) { throw null; }
}
public partial class BinaryReader : System.IDisposable
@@ -1278,8 +1278,8 @@ namespace System.IO
public override void Write(byte[] array, int offset, int count) { }
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
public override void WriteByte(byte value) { }
- public Stream UnderlyingStream { get { return default(Stream); } }
- public int BufferSize { get { return 0; } }
+ public Stream UnderlyingStream { get { throw null; } }
+ public int BufferSize { get { throw null; } }
}
public partial class EndOfStreamException : System.IO.IOException
{