mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Extensions classes should be named as such
This commit is contained in:
@@ -3,7 +3,7 @@ using SabreTools.Data.Models.Atari7800;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class Atari7800Cart
|
||||
public static class Atari7800CartExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert a <see cref="AudioDevice"/> value to string
|
||||
@@ -2,7 +2,7 @@ using SabreTools.Data.Models.AtariLynx;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class AtariLynxCart
|
||||
public static class AtariLynxCartExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert a <see cref="Rotation"/> value to string
|
||||
@@ -5,7 +5,7 @@ using SabreTools.IO.Extensions;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class CDROM
|
||||
public static class CDROMExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Get the sector mode for a CD-ROM stream
|
||||
@@ -2,7 +2,7 @@ using System.Text;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class CFB
|
||||
public static class CFBExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Decode a MIME-encoded stream name stored as a byte array
|
||||
@@ -3,7 +3,7 @@ using SabreTools.Numerics;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class ISO9660
|
||||
public static class ISO9660Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Get the logical block size from a sector length
|
||||
@@ -2,7 +2,7 @@ using SabreTools.Data.Models.InstallShieldCabinet;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class InstallShieldCabinet
|
||||
public static class InstallShieldCabinetExtensions
|
||||
{
|
||||
#region File Descriptors
|
||||
|
||||
@@ -2,7 +2,7 @@ using SabreTools.Data.Models.NES;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class NESCart
|
||||
public static class NESCartExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert a <see cref="ConsoleType"/> value to string
|
||||
@@ -2,7 +2,7 @@ using SabreTools.Data.Models.NewExecutable;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class NewExecutable
|
||||
public static class NewExecutableExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Determine if a resource type information entry is an integer or offset
|
||||
@@ -3,7 +3,7 @@ using SabreTools.Data.Models.COFF;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class PortableExecutable
|
||||
public static class PortableExecutableExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert a relative virtual address to a physical one
|
||||
@@ -6,14 +6,14 @@ using SabreTools.ObjectIdentifier;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class TypeLengthValue
|
||||
public static class TypeLengthValueExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Format a TypeLengthValue as a string
|
||||
/// </summary>
|
||||
/// <param name="paddingLevel">Padding level of the item when formatting</param>
|
||||
/// <returns>String representing the TypeLengthValue, if possible</returns>
|
||||
public static string Format(this Models.ASN1.TypeLengthValue tlv, int paddingLevel = 0)
|
||||
public static string Format(this TypeLengthValue tlv, int paddingLevel = 0)
|
||||
{
|
||||
// Create the left-padding string
|
||||
string padding = new(' ', paddingLevel);
|
||||
@@ -38,7 +38,7 @@ namespace SabreTools.Data.Extensions
|
||||
if (tlv.Type.HasFlag(ASN1Type.V_ASN1_CONSTRUCTED))
|
||||
#endif
|
||||
{
|
||||
if (tlv.Value is not Models.ASN1.TypeLengthValue[] valueAsObjectArray)
|
||||
if (tlv.Value is not TypeLengthValue[] valueAsObjectArray)
|
||||
{
|
||||
formatBuilder.Append(", Value: [INVALID DATA TYPE]");
|
||||
return formatBuilder.ToString();
|
||||
@@ -3,7 +3,7 @@ using System.Text.RegularExpressions;
|
||||
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class WiseScript
|
||||
public static class WiseScriptExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert a Wise function ID to the formal action name
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class XZ
|
||||
public static class XZExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Decode a value from a variable-length integer
|
||||
@@ -3,7 +3,7 @@ using SabreTools.IO.Extensions;
|
||||
|
||||
namespace SabreTools.Data.Extensions
|
||||
{
|
||||
public static class XboxExecutable
|
||||
public static class XboxExecutableExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert a UInt32 to a formatted XBE title ID
|
||||
Reference in New Issue
Block a user