Skip to content

Commit

Permalink
🎇 Style: Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Mar 15, 2024
1 parent 4608129 commit f1c2634
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@

namespace KitX.FileFormats.CSharp.ExtensionsPackage;

public class Decoder
public class Decoder(string packagePath, Options? options = null)
{
public Decoder(string packagePath, Options? options = null)
{
PackagePath = packagePath;

Options = options ?? new();
}

public string PackagePath { get; set; }
public string PackagePath { get; set; } = packagePath;

public Options Options { get; set; }
public Options Options { get; set; } = options ?? new();

internal struct FileMapItem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,20 @@ namespace KitX.FileFormats.CSharp.ExtensionsPackage;

using File = System.IO.File;

public class Encoder
{
public Encoder(
List<string> filesToInclude,
string loaderStruct,
string pluginStruct,
Options? options = null
public class Encoder(
List<string> filesToInclude,
string loaderStruct,
string pluginStruct,
Options? options = null
)
{
FilesToInclude = filesToInclude;
LoaderStruct = loaderStruct;
PluginStruct = pluginStruct;
Options = options ?? new();
}

public List<string> FilesToInclude { get; set; }
{
public List<string> FilesToInclude { get; set; } = filesToInclude;

public string LoaderStruct { get; set; }
public string LoaderStruct { get; set; } = loaderStruct;

public string PluginStruct { get; set; }
public string PluginStruct { get; set; } = pluginStruct;

public Options Options { get; set; }
public Options Options { get; set; } = options ?? new();

/// <summary>
/// 编码包体
Expand Down

0 comments on commit f1c2634

Please sign in to comment.