Skip to content

Commit 5085a55

Browse files
author
Juliano Leal Goncalves
committed
🐛 Make factory methods in ConstantByteStream static
1 parent dd17c05 commit 5085a55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ConstantStream/ConstantByteStream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ public ConstantByteStream(int size, byte content)
2727

2828
public override long Position { get => _position; set => throw new NotImplementedException(); }
2929

30-
public ConstantByteStream FromZeroes(int size)
30+
public static ConstantByteStream FromZeroes(int size)
3131
{
3232
return new ConstantByteStream(size, (byte)0);
3333
}
3434

35-
public ConstantByteStream FromOnes(int size)
35+
public static ConstantByteStream FromOnes(int size)
3636
{
3737
return new ConstantByteStream(size, (byte)1);
3838
}
3939

40-
public ConstantByteStream FromCharacterA(int size)
40+
public static ConstantByteStream FromCharacterA(int size)
4141
{
4242
return new ConstantByteStream(size, (byte)'a');
4343
}

0 commit comments

Comments
 (0)