diff options
Diffstat (limited to 'src/IOL.VippsEcommerce')
| -rw-r--r-- | src/IOL.VippsEcommerce/Models/VippsConfiguration.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs b/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs index 5411ebc..252c877 100644 --- a/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs +++ b/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs @@ -114,11 +114,13 @@ namespace IOL.VippsEcommerce.Models foreach (var attribute in prop.CustomAttributes) { foreach (var argument in attribute.ConstructorArguments) { if (argument.Value as string == key) { - var value = prop.GetValue(this, null)?.ToString(); #if DEBUG + var value = prop.GetValue(this, null)?.ToString(); Console.WriteLine("Key: " + key + " Value: " + value); -#endif return value; +#else + return prop.GetValue(this, null)?.ToString(); +#endif } } } |
