Skip to content

Commit

Permalink
v3.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Tynab committed Jul 10, 2023
1 parent 623000c commit 94861eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/YANLib/YANLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<PackAsTool>False</PackAsTool>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>Update bool</PackageReleaseNotes>
<PackageReleaseNotes>Update model</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<PackageId>Tynab.YANLib</PackageId>
<Version>3.1.8</Version>
<Version>3.1.9</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions lib/YANLib/YANModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ namespace YANLib;

public static partial class YANModel
{
public static List<T> ToList<T>(this T mdl) where T : class => new() { mdl };
public static List<T> ConvertList<T>(this T mdl) where T : class => new() { mdl };

public static HashSet<T> ToHashSet<T>(this T mdl) where T : class => new() { mdl };
public static HashSet<T> ConvertHashSet<T>(this T mdl) where T : class => new() { mdl };

public static T[] ToArray<T>(this T mdl) where T : class => new T[1] { mdl };
public static T[] ConvertArray<T>(this T mdl) where T : class => new T[1] { mdl };

public static T? ChangeTimeZoneAllProperties<T, T1, T2>(this T? mdl, T1 tzSrc, T2 tzDst) where T : class where T1 : struct where T2 : struct
{
Expand Down

0 comments on commit 94861eb

Please sign in to comment.