SetProperty() public static method

public static SetProperty ( object target, string name, object value ) : object
target object
name string
value object
return object
Esempio n. 1
0
 public object QuackSet(string name, object[] parameters, object obj)
 {
     if (target == null)
     {
         return(this);
     }
     if (IsNullOrEmpty(parameters))
     {
         ExpandDuckTypedExpressions_WorkaroundForDuplicateVirtualMethods.SetProperty(target, name, obj);
     }
     else
     {
         ExpandDuckTypedExpressions_WorkaroundForDuplicateVirtualMethods.SetSlice(target, name,
                                                                                  GetParameterArray(parameters, obj));
     }
     return(this);
 }