diff --git a/demo/Skylark.Console.Demo/ConsoleDemoBrowser/ConsoleDemoBrowser/ConsoleDemoBrowser.csproj b/demo/Skylark.Console.Demo/ConsoleDemoBrowser/ConsoleDemoBrowser/ConsoleDemoBrowser.csproj index acbe5e12..91e48e4e 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoBrowser/ConsoleDemoBrowser/ConsoleDemoBrowser.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoBrowser/ConsoleDemoBrowser/ConsoleDemoBrowser.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoColor/ConsoleDemoColor/ConsoleDemoColor.csproj b/demo/Skylark.Console.Demo/ConsoleDemoColor/ConsoleDemoColor/ConsoleDemoColor.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoColor/ConsoleDemoColor/ConsoleDemoColor.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoColor/ConsoleDemoColor/ConsoleDemoColor.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoCompression/ConsoleDemoCompression/ConsoleDemoCompression.csproj b/demo/Skylark.Console.Demo/ConsoleDemoCompression/ConsoleDemoCompression/ConsoleDemoCompression.csproj index acbe5e12..91e48e4e 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoCompression/ConsoleDemoCompression/ConsoleDemoCompression.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoCompression/ConsoleDemoCompression/ConsoleDemoCompression.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoCryptology/ConsoleDemoCryptology/ConsoleDemoCryptology.csproj b/demo/Skylark.Console.Demo/ConsoleDemoCryptology/ConsoleDemoCryptology/ConsoleDemoCryptology.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoCryptology/ConsoleDemoCryptology/ConsoleDemoCryptology.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoCryptology/ConsoleDemoCryptology/ConsoleDemoCryptology.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoCss/ConsoleDemoCss/ConsoleDemoCss.csproj b/demo/Skylark.Console.Demo/ConsoleDemoCss/ConsoleDemoCss/ConsoleDemoCss.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoCss/ConsoleDemoCss/ConsoleDemoCss.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoCss/ConsoleDemoCss/ConsoleDemoCss.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoDecompression/ConsoleDemoDecompression/ConsoleDemoDecompression.csproj b/demo/Skylark.Console.Demo/ConsoleDemoDecompression/ConsoleDemoDecompression/ConsoleDemoDecompression.csproj index acbe5e12..91e48e4e 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoDecompression/ConsoleDemoDecompression/ConsoleDemoDecompression.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoDecompression/ConsoleDemoDecompression/ConsoleDemoDecompression.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoHash/ConsoleDemoHash/ConsoleDemoHash.csproj b/demo/Skylark.Console.Demo/ConsoleDemoHash/ConsoleDemoHash/ConsoleDemoHash.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoHash/ConsoleDemoHash/ConsoleDemoHash.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoHash/ConsoleDemoHash/ConsoleDemoHash.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoHelper/ConsoleDemoHelper/ConsoleDemoHelper.csproj b/demo/Skylark.Console.Demo/ConsoleDemoHelper/ConsoleDemoHelper/ConsoleDemoHelper.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoHelper/ConsoleDemoHelper/ConsoleDemoHelper.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoHelper/ConsoleDemoHelper/ConsoleDemoHelper.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoHtml/ConsoleDemoHtml/ConsoleDemoHtml.csproj b/demo/Skylark.Console.Demo/ConsoleDemoHtml/ConsoleDemoHtml/ConsoleDemoHtml.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoHtml/ConsoleDemoHtml/ConsoleDemoHtml.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoHtml/ConsoleDemoHtml/ConsoleDemoHtml.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoJs/ConsoleDemoJs/ConsoleDemoJs.csproj b/demo/Skylark.Console.Demo/ConsoleDemoJs/ConsoleDemoJs/ConsoleDemoJs.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoJs/ConsoleDemoJs/ConsoleDemoJs.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoJs/ConsoleDemoJs/ConsoleDemoJs.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoJson/ConsoleDemoJson/ConsoleDemoJson.csproj b/demo/Skylark.Console.Demo/ConsoleDemoJson/ConsoleDemoJson/ConsoleDemoJson.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoJson/ConsoleDemoJson/ConsoleDemoJson.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoJson/ConsoleDemoJson/ConsoleDemoJson.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoLottery/ConsoleDemoLottery/ConsoleDemoLottery.csproj b/demo/Skylark.Console.Demo/ConsoleDemoLottery/ConsoleDemoLottery/ConsoleDemoLottery.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoLottery/ConsoleDemoLottery/ConsoleDemoLottery.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoLottery/ConsoleDemoLottery/ConsoleDemoLottery.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoPassword/ConsoleDemoPassword/ConsoleDemoPassword.csproj b/demo/Skylark.Console.Demo/ConsoleDemoPassword/ConsoleDemoPassword/ConsoleDemoPassword.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoPassword/ConsoleDemoPassword/ConsoleDemoPassword.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoPassword/ConsoleDemoPassword/ConsoleDemoPassword.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoPing/ConsoleDemoPing/ConsoleDemoPing.csproj b/demo/Skylark.Console.Demo/ConsoleDemoPing/ConsoleDemoPing/ConsoleDemoPing.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoPing/ConsoleDemoPing/ConsoleDemoPing.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoPing/ConsoleDemoPing/ConsoleDemoPing.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoPort/ConsoleDemoPort/ConsoleDemoPort.csproj b/demo/Skylark.Console.Demo/ConsoleDemoPort/ConsoleDemoPort/ConsoleDemoPort.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoPort/ConsoleDemoPort/ConsoleDemoPort.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoPort/ConsoleDemoPort/ConsoleDemoPort.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoSpeed/ConsoleDemoSpeed/ConsoleDemoSpeed.csproj b/demo/Skylark.Console.Demo/ConsoleDemoSpeed/ConsoleDemoSpeed/ConsoleDemoSpeed.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoSpeed/ConsoleDemoSpeed/ConsoleDemoSpeed.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoSpeed/ConsoleDemoSpeed/ConsoleDemoSpeed.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoStorage/ConsoleDemoStorage/ConsoleDemoStorage.csproj b/demo/Skylark.Console.Demo/ConsoleDemoStorage/ConsoleDemoStorage/ConsoleDemoStorage.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoStorage/ConsoleDemoStorage/ConsoleDemoStorage.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoStorage/ConsoleDemoStorage/ConsoleDemoStorage.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoTax/ConsoleDemoTax/ConsoleDemoTax.csproj b/demo/Skylark.Console.Demo/ConsoleDemoTax/ConsoleDemoTax/ConsoleDemoTax.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoTax/ConsoleDemoTax/ConsoleDemoTax.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoTax/ConsoleDemoTax/ConsoleDemoTax.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoTemperature/ConsoleDemoTemperature/ConsoleDemoTemperature.csproj b/demo/Skylark.Console.Demo/ConsoleDemoTemperature/ConsoleDemoTemperature/ConsoleDemoTemperature.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoTemperature/ConsoleDemoTemperature/ConsoleDemoTemperature.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoTemperature/ConsoleDemoTemperature/ConsoleDemoTemperature.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoText/ConsoleDemoText/ConsoleDemoText.csproj b/demo/Skylark.Console.Demo/ConsoleDemoText/ConsoleDemoText/ConsoleDemoText.csproj index 54a6590b..4f04dd26 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoText/ConsoleDemoText/ConsoleDemoText.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoText/ConsoleDemoText/ConsoleDemoText.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoTime/ConsoleDemoTime/ConsoleDemoTime.csproj b/demo/Skylark.Console.Demo/ConsoleDemoTime/ConsoleDemoTime/ConsoleDemoTime.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoTime/ConsoleDemoTime/ConsoleDemoTime.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoTime/ConsoleDemoTime/ConsoleDemoTime.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoTypography/ConsoleDemoTypography/ConsoleDemoTypography.csproj b/demo/Skylark.Console.Demo/ConsoleDemoTypography/ConsoleDemoTypography/ConsoleDemoTypography.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoTypography/ConsoleDemoTypography/ConsoleDemoTypography.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoTypography/ConsoleDemoTypography/ConsoleDemoTypography.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoUnicode/ConsoleDemoUnicode/ConsoleDemoUnicode.csproj b/demo/Skylark.Console.Demo/ConsoleDemoUnicode/ConsoleDemoUnicode/ConsoleDemoUnicode.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoUnicode/ConsoleDemoUnicode/ConsoleDemoUnicode.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoUnicode/ConsoleDemoUnicode/ConsoleDemoUnicode.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoUrl/ConsoleDemoUrl/ConsoleDemoUrl.csproj b/demo/Skylark.Console.Demo/ConsoleDemoUrl/ConsoleDemoUrl/ConsoleDemoUrl.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoUrl/ConsoleDemoUrl/ConsoleDemoUrl.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoUrl/ConsoleDemoUrl/ConsoleDemoUrl.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoWeb/ConsoleDemoWeb/ConsoleDemoWeb.csproj b/demo/Skylark.Console.Demo/ConsoleDemoWeb/ConsoleDemoWeb/ConsoleDemoWeb.csproj index 663e16ca..6fc5d421 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoWeb/ConsoleDemoWeb/ConsoleDemoWeb.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoWeb/ConsoleDemoWeb/ConsoleDemoWeb.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoWord/ConsoleDemoWord/ConsoleDemoWord.csproj b/demo/Skylark.Console.Demo/ConsoleDemoWord/ConsoleDemoWord/ConsoleDemoWord.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoWord/ConsoleDemoWord/ConsoleDemoWord.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoWord/ConsoleDemoWord/ConsoleDemoWord.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoXhtml/ConsoleDemoXhtml/ConsoleDemoXhtml.csproj b/demo/Skylark.Console.Demo/ConsoleDemoXhtml/ConsoleDemoXhtml/ConsoleDemoXhtml.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoXhtml/ConsoleDemoXhtml/ConsoleDemoXhtml.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoXhtml/ConsoleDemoXhtml/ConsoleDemoXhtml.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.Console.Demo/ConsoleDemoXml/ConsoleDemoXml/ConsoleDemoXml.csproj b/demo/Skylark.Console.Demo/ConsoleDemoXml/ConsoleDemoXml/ConsoleDemoXml.csproj index d4c6306e..707dd5d2 100644 --- a/demo/Skylark.Console.Demo/ConsoleDemoXml/ConsoleDemoXml/ConsoleDemoXml.csproj +++ b/demo/Skylark.Console.Demo/ConsoleDemoXml/ConsoleDemoXml/ConsoleDemoXml.csproj @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/demo/Skylark.WinForms.Demo/Skylark.UI/Skylark.UI/Skylark.UI.csproj b/demo/Skylark.WinForms.Demo/Skylark.UI/Skylark.UI/Skylark.UI.csproj index 96011bae..1a7fbf79 100644 --- a/demo/Skylark.WinForms.Demo/Skylark.UI/Skylark.UI/Skylark.UI.csproj +++ b/demo/Skylark.WinForms.Demo/Skylark.UI/Skylark.UI/Skylark.UI.csproj @@ -15,8 +15,8 @@ Skylark.UI.Program - - - + + + \ No newline at end of file diff --git a/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj b/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj index 1de2a2a0..0f5b2b6e 100644 --- a/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj +++ b/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj @@ -12,7 +12,7 @@ WinFormsDemoWallpaper.Program - - + + \ No newline at end of file diff --git a/src/Skylark.Clipboard/Skylark.Clipboard.csproj b/src/Skylark.Clipboard/Skylark.Clipboard.csproj index aca16ae4..84a2a986 100644 --- a/src/Skylark.Clipboard/Skylark.Clipboard.csproj +++ b/src/Skylark.Clipboard/Skylark.Clipboard.csproj @@ -11,7 +11,7 @@ Resources\Skylark.Clipboard.ico - 3.1.3.4 + 3.1.3.5 $(Version) true Skylark.Clipboard @@ -57,7 +57,7 @@ - + diff --git a/src/Skylark.DNS/Skylark.DNS.csproj b/src/Skylark.DNS/Skylark.DNS.csproj index 4d510ece..e4c4683e 100644 --- a/src/Skylark.DNS/Skylark.DNS.csproj +++ b/src/Skylark.DNS/Skylark.DNS.csproj @@ -10,7 +10,7 @@ Resources\Skylark.DNS.ico - 3.1.3.3 + 3.1.3.4 $(Version) true Skylark.DNS @@ -56,7 +56,7 @@ - + diff --git a/src/Skylark.Standard/Skylark.Standard.csproj b/src/Skylark.Standard/Skylark.Standard.csproj index b87c4b79..807b06f0 100644 --- a/src/Skylark.Standard/Skylark.Standard.csproj +++ b/src/Skylark.Standard/Skylark.Standard.csproj @@ -10,7 +10,7 @@ Resources\Skylark.Standard.ico - 3.1.5.5 + 3.1.5.6 $(Version) true Skylark.Standard @@ -56,7 +56,7 @@ - + diff --git a/src/Skylark.Uptime/Skylark.Uptime.cs b/src/Skylark.Uptime/Skylark.Uptime.cs index 55ccbeef..ff6f92c2 100644 --- a/src/Skylark.Uptime/Skylark.Uptime.cs +++ b/src/Skylark.Uptime/Skylark.Uptime.cs @@ -18,8 +18,8 @@ // Creator: Taiizor // Website: www.Vegalya.com // Created: 27.Feb.2023 -// Changed: 21.May.2024 -// Version: 3.1.4.1 +// Changed: 26.May.2024 +// Version: 3.1.4.2 // // |---------DO-NOT-REMOVE---------| diff --git a/src/Skylark.Uptime/Skylark.Uptime.csproj b/src/Skylark.Uptime/Skylark.Uptime.csproj index 510331cc..deb938a6 100644 --- a/src/Skylark.Uptime/Skylark.Uptime.csproj +++ b/src/Skylark.Uptime/Skylark.Uptime.csproj @@ -10,7 +10,7 @@ Resources\Skylark.Uptime.ico - 3.1.4.1 + 3.1.4.2 $(Version) true Skylark.Uptime @@ -56,7 +56,7 @@ - + diff --git a/src/Skylark.Wing/Skylark.Wing.cs b/src/Skylark.Wing/Skylark.Wing.cs index 2bbfbada..990e6828 100644 --- a/src/Skylark.Wing/Skylark.Wing.cs +++ b/src/Skylark.Wing/Skylark.Wing.cs @@ -21,8 +21,8 @@ // Creator: Taiizor // Website: www.Vegalya.com // Created: 17.Jun.2023 -// Changed: 21.May.2024 -// Version: 3.1.4.7 +// Changed: 26.May.2024 +// Version: 3.1.4.8 // // |---------DO-NOT-REMOVE---------| diff --git a/src/Skylark.Wing/Skylark.Wing.csproj b/src/Skylark.Wing/Skylark.Wing.csproj index b5a1d8c6..0277b3f1 100644 --- a/src/Skylark.Wing/Skylark.Wing.csproj +++ b/src/Skylark.Wing/Skylark.Wing.csproj @@ -12,7 +12,7 @@ Resources\Skylark.Wing.ico - 3.1.4.7 + 3.1.4.8 $(Version) true Skylark.Wing @@ -58,7 +58,7 @@ - + diff --git a/src/Skylark/Helper/Guidly.cs b/src/Skylark/Helper/Guidly.cs index 2a504ce8..3b65fd11 100644 --- a/src/Skylark/Helper/Guidly.cs +++ b/src/Skylark/Helper/Guidly.cs @@ -5,6 +5,60 @@ /// public static class Guidly { + /// + /// + /// + /// + /// + public static Guid BaseToGuid(string Base) + { + Base = Base.Replace("_", "/").Replace("-", "+"); + + switch (Base.Length % 4) + { + case 2: + Base += "=="; + break; + case 3: + Base += "="; + break; + } + + byte[] Bytes = Convert.FromBase64String(Base); + + return ByteToGuid(Bytes); + } + + /// + /// + /// + /// + /// + public static async Task BaseToGuidAsync(string Base) + { + return await Task.Run(() => BaseToGuid(Base)); + } + + /// + /// + /// + /// + /// + public static Guid ByteToGuid(byte[] Byte) + { + return new Guid(Byte); + } + + /// + /// + /// + /// + /// + public static async Task ByteToGuidAsync(byte[] Byte) + { + return await Task.Run(() => ByteToGuid(Byte)); + } + /// /// /// @@ -12,7 +66,7 @@ public static class Guidly /// public static string GuidToBase(Guid Guid) { - byte[] Bytes = Guid.ToByteArray(); + byte[] Bytes = GuidToByte(Guid); string Base64 = Convert.ToBase64String(Bytes); @@ -32,35 +86,21 @@ public static async Task GuidToBaseAsync(Guid Guid) /// /// /// - /// + /// /// - public static Guid BaseToGuid(string Base) + public static byte[] GuidToByte(Guid Guid) { - Base = Base.Replace("_", "/").Replace("-", "+"); - - switch (Base.Length % 4) - { - case 2: - Base += "=="; - break; - case 3: - Base += "="; - break; - } - - byte[] Bytes = Convert.FromBase64String(Base); - - return new Guid(Bytes); + return Guid.ToByteArray(); } /// /// /// - /// + /// /// - public static async Task BaseToGuidAsync(string Base) + public static async Task GuidToByteAsync(Guid Guid) { - return await Task.Run(() => BaseToGuid(Base)); + return await Task.Run(() => GuidToByte(Guid)); } /// diff --git a/src/Skylark/Skylark.cs b/src/Skylark/Skylark.cs index 305f8f91..f521222c 100644 --- a/src/Skylark/Skylark.cs +++ b/src/Skylark/Skylark.cs @@ -12,8 +12,8 @@ // Creator: Taiizor // Website: www.Vegalya.com // Created: 03.Jan.2023 -// Changed: 21.May.2024 -// Version: 3.1.4.1 +// Changed: 26.May.2024 +// Version: 3.1.4.2 // // |---------DO-NOT-REMOVE---------| diff --git a/src/Skylark/Skylark.csproj b/src/Skylark/Skylark.csproj index c37d1fa5..4f6cd2ae 100644 --- a/src/Skylark/Skylark.csproj +++ b/src/Skylark/Skylark.csproj @@ -10,7 +10,7 @@ Resources\Skylark.ico - 3.1.4.1 + 3.1.4.2 $(Version) true Skylark diff --git a/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj b/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj index fe79b1e9..5c054716 100644 --- a/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj +++ b/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj @@ -9,10 +9,10 @@ - - - - + + + + \ No newline at end of file