Skip to content

Commit f7d19a6

Browse files
committed
Revert "nieuwe securestring extensions"
This reverts commit 7b0ebf4.
1 parent 7b0ebf4 commit f7d19a6

File tree

3 files changed

+5
-139
lines changed

3 files changed

+5
-139
lines changed

theRightDirection.Library.NetCore/Extensions/Extensions.SecureString.cs

Lines changed: 0 additions & 131 deletions
This file was deleted.

theRightDirection.Library.NetCore/Extensions/Extensions.String.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public static bool IsValidJson<T>(this string data)
180180
JsonConvert.DeserializeObject<T>(data);
181181
return true;
182182
}
183-
catch
183+
catch (Exception e)
184184
{
185185
return false;
186186
}
@@ -203,7 +203,7 @@ public static bool IsValidJson(this string data)
203203
JObject.Parse(data);
204204
return true;
205205
}
206-
catch
206+
catch(Exception e)
207207
{
208208
return false;
209209
}
@@ -276,8 +276,7 @@ public static bool IsValidFileName(this string filename, bool platformIndependen
276276
/// <param name="throwExceptionWhenNull">throw argumentnull-exception when unsecurestring is null</param>
277277
/// <param name="convertNullToEmptyString">in case you want to be sure that null-values not breaking your code, they can be switch to string empty</param>
278278
/// </summary>
279-
[Obsolete("27-04-2022: new implementation available, this one renamed to ToUnSecureString_Obsolete")]
280-
public static string ToUnsecureString_Obsolete(this SecureString secureString, bool throwExceptionWhenNull = true, bool convertNullToEmptyString = false)
279+
public static string ToUnsecureString(this SecureString secureString, bool throwExceptionWhenNull = true, bool convertNullToEmptyString = false)
281280
{
282281
if (secureString == null && throwExceptionWhenNull)
283282
{
@@ -376,8 +375,7 @@ public static bool ExceedsLength(this string source, int index)
376375
/// <param name="throwExceptionWhenNull">throw argumentnull-exception when unsecurestring is null</param>
377376
/// <param name="convertNullToEmptyString">in case you want to be sure that null-values not breaking your code, they can be switch to string empty</param>
378377
/// </summary>
379-
[Obsolete("27-04-2022: new implementation available, this one renamed to ToSecureString_Obsolete")]
380-
public static SecureString ToSecureString_Obsolete(this string unsecureString, bool throwExceptionWhenNull = true, bool convertNullToEmptyString = false)
378+
public static SecureString ToSecureString(this string unsecureString, bool throwExceptionWhenNull = true, bool convertNullToEmptyString = false)
381379
{
382380
if (unsecureString == null && throwExceptionWhenNull)
383381
{

theRightDirection.Library.NetCore/theRightDirection.Library.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
<Copyright>the Right Direction BV</Copyright>
1111
<PackageProjectUrl>https://www.therightdirection.nl</PackageProjectUrl>
1212
<PackageIcon>tRD-icon-v-400.jpg</PackageIcon>
13-
<Version>6.3.0</Version>
13+
<Version>6.2.1</Version>
1414
<ApplicationIcon>tRD-icon-v-400.ico</ApplicationIcon>
1515
<Company>the Right Direction BV</Company>
1616
<RepositoryUrl>https://www.therightdirection.nl</RepositoryUrl>
1717
<DebugType>none</DebugType>
18-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1918
</PropertyGroup>
2019

2120
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

0 commit comments

Comments
 (0)