Skip to content

Commit

Permalink
Remove NETSTANDARD constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Apr 10, 2024
1 parent c0bf43a commit e3521f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public object SqlValue

public void SetToNullOfType(StorageType storageType)
{
#if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
#if NET6_0_OR_GREATER
_setToNullOfTypeMethod
.Invoke(_instance, BindingFlags.DoNotWrapExceptions, null, new object[] { (int)storageType }, null);
#else
Expand All @@ -219,7 +219,7 @@ public void SetToNullOfType(StorageType storageType)

private T GetPropertyValue<T>(PropertyInfo property)
{
#if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
#if NET6_0_OR_GREATER
return (T)property.GetValue(_instance, BindingFlags.DoNotWrapExceptions, null, null, null);
#else
try
Expand All @@ -235,7 +235,7 @@ private T GetPropertyValue<T>(PropertyInfo property)

private void SetPropertyValue(PropertyInfo property, object value)
{
#if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
#if NET6_0_OR_GREATER
property.SetValue(_instance, value, BindingFlags.DoNotWrapExceptions, null, null, null);
#else
try
Expand Down

0 comments on commit e3521f3

Please sign in to comment.