File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Utility.CommandLine.Arguments Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ public static void Populate(Type type, Arguments arguments)
416416 }
417417
418418 // set the target properties' value to the converted value from the argument string
419- AppendPropertyValue ( property , convertedValue ) ;
419+ property . SetValue ( null , convertedValue ) ;
420420 }
421421 }
422422
@@ -441,23 +441,6 @@ public static void Populate(Type type, Arguments arguments)
441441
442442 #region Private Methods
443443
444- /// <summary>
445- /// Appends the value of the specified property with the specified value.
446- /// </summary>
447- /// <remarks>Assumes that only static properties are to be set.</remarks>
448- /// <param name="property">The property for which the value is to be set.</param>
449- /// <param name="value">The value to set.</param>
450- private static void AppendPropertyValue ( PropertyInfo property , object value )
451- {
452- object currentValue = property . GetValue ( null ) ;
453-
454- if ( property . GetType ( ) != typeof ( bool ) )
455- {
456- }
457-
458- property . SetValue ( null , value ) ;
459- }
460-
461444 /// <summary>
462445 /// Converts the specified value for the specified argument to the specified Type.
463446 /// </summary>
You can’t perform that action at this time.
0 commit comments