mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-14 18:02:58 +00:00
Some resharper fixes
This commit is contained in:
@@ -17,17 +17,17 @@ namespace CryptoExchange.Net.Objects
|
||||
|
||||
// Both arrays are non-null. Find the shorter
|
||||
// of the two lengths.
|
||||
int bytesToCompare = Math.Min(x.Length, y.Length);
|
||||
var bytesToCompare = Math.Min(x.Length, y.Length);
|
||||
|
||||
// Compare the bytes.
|
||||
for (int index = 0; index < bytesToCompare; ++index)
|
||||
for (var index = 0; index < bytesToCompare; ++index)
|
||||
{
|
||||
// The x and y bytes.
|
||||
byte xByte = x[index];
|
||||
byte yByte = y[index];
|
||||
var xByte = x[index];
|
||||
var yByte = y[index];
|
||||
|
||||
// Compare result.
|
||||
int compareResult = Comparer<byte>.Default.Compare(xByte, yByte);
|
||||
var compareResult = Comparer<byte>.Default.Compare(xByte, yByte);
|
||||
|
||||
// If not the same, then return the result of the
|
||||
// comparison of the bytes, as they were the same
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CryptoExchange.Net.Objects
|
||||
/// <summary>
|
||||
/// The log writers
|
||||
/// </summary>
|
||||
public List<TextWriter> LogWriters { get; set; } = new List<TextWriter>() { new DebugTextWriter() };
|
||||
public List<TextWriter> LogWriters { get; set; } = new List<TextWriter> { new DebugTextWriter() };
|
||||
}
|
||||
|
||||
public class ClientOptions: ExchangeOptions
|
||||
|
||||
Reference in New Issue
Block a user