Skip to content

Commit

Permalink
fix reader/writer Dispose method
Browse files Browse the repository at this point in the history
  • Loading branch information
akopetsch committed Jun 4, 2024
1 parent 373b5b7 commit 948cfe4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ByteSerialization/ByteSerialization.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>disable</Nullable>
<Authors>Alexander Kopetsch</Authors>
<Version>0.0.1.0</Version>
<PackageVersion>0.0.1-alpha.3</PackageVersion>
<PackageVersion>0.0.1-alpha.4</PackageVersion>
<PackageProjectUrl>https://github.com/akopetsch/ByteSerialization</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
2 changes: 1 addition & 1 deletion ByteSerialization/IO/EndianBinaryReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void InitFuncs()
}

public void Dispose() =>
reader.Close();
reader.Dispose();

#endregion

Expand Down
3 changes: 2 additions & 1 deletion ByteSerialization/IO/EndianBinaryWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ private void InitFuncs()
funcs.Add(typeof(string), x => Write((string)x));
}

public void Dispose() => writer.Close();
public void Dispose() =>
writer.Dispose();

#endregion

Expand Down

0 comments on commit 948cfe4

Please sign in to comment.