tidy
This commit is contained in:
@@ -2,30 +2,30 @@ namespace Gma.QrCodeNet.Encoding;
|
||||
|
||||
public abstract class BitMatrixBase : BitMatrix
|
||||
{
|
||||
protected BitMatrixBase(int width, bool[,] internalArray)
|
||||
{
|
||||
Width = width;
|
||||
InternalArray = internalArray;
|
||||
}
|
||||
protected BitMatrixBase(int width, bool[,] internalArray)
|
||||
{
|
||||
Width = width;
|
||||
InternalArray = internalArray;
|
||||
}
|
||||
|
||||
protected BitMatrixBase(bool[,] internalArray)
|
||||
{
|
||||
InternalArray = internalArray;
|
||||
int width = internalArray.GetLength(0);
|
||||
Width = width;
|
||||
}
|
||||
protected BitMatrixBase(bool[,] internalArray)
|
||||
{
|
||||
InternalArray = internalArray;
|
||||
int width = internalArray.GetLength(0);
|
||||
Width = width;
|
||||
}
|
||||
|
||||
public override bool[,] InternalArray { get; }
|
||||
public override bool[,] InternalArray { get; }
|
||||
|
||||
public override int Width { get; }
|
||||
public override int Width { get; }
|
||||
|
||||
public static bool CanCreate(bool[,] internalArray)
|
||||
{
|
||||
if (internalArray is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public static bool CanCreate(bool[,] internalArray)
|
||||
{
|
||||
if (internalArray is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return internalArray.GetLength(0) == internalArray.GetLength(1);
|
||||
}
|
||||
}
|
||||
return internalArray.GetLength(0) == internalArray.GetLength(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user