Westwind.WebConnection.wwDotNetBridge.SetPropertyEx C# (CSharp) Method

SetPropertyEx() public method

Sets a property of a .NET object with a value using extended syntax. This method supports '.' syntax so you can use "Property.ChildProperty" to walk the object hierarchy in the string property parameter. This method also supports accessing of Array/Collection indexers (Item[1])
public SetPropertyEx ( object Instance, string Property, object Value ) : void
Instance object
Property string
Value object
return void
        public void SetPropertyEx(object Instance, string Property, object Value)
        {
            LastException = null;
            try
            {
                if (Value is DBNull)
                    Value = null;

                Value = FixupParameter(Value);
                ReflectionUtils.SetPropertyEx(Instance, Property, Value);
            }
            catch (Exception ex)
            {
                LastException = ex;
                SetError(ex.GetBaseException(), true);
                throw ex.GetBaseException();
            }
        }
wwDotNetBridge