PeanutButter
|
Interface to implement for shimming ducked-types. Used for the backing field within the ducked type. Could potentially be used as a starting point for new ways to duck. More...
Public Member Functions | |
object | GetPropertyValue (string propertyName) |
Gets a property value from the underlying object. | |
void | SetPropertyValue (string propertyName, object newValue) |
Sets a property value on the underlying object. | |
void | CallThroughVoid (string methodName, params object[] parameters) |
Calls through to an underlying void-returning method. | |
object | CallThrough (string methodName, object[] arguments) |
Calls through to an underlying method and returns the result. |
Interface to implement for shimming ducked-types. Used for the backing field within the ducked type. Could potentially be used as a starting point for new ways to duck.
object PeanutButter.DuckTyping.Shimming.IShimSham.CallThrough | ( | string | methodName, |
object[] | arguments ) |
Calls through to an underlying method and returns the result.
methodName | Name of the method to call through to |
arguments | Parameters to pass through to the method |
Implemented in PeanutButter.DuckTyping.Shimming.DictionaryShimSham, and PeanutButter.DuckTyping.Shimming.ShimSham.
void PeanutButter.DuckTyping.Shimming.IShimSham.CallThroughVoid | ( | string | methodName, |
params object[] | parameters ) |
Calls through to an underlying void-returning method.
methodName | Name of the method to call through to |
parameters | Parameters to pass through to the method |
Implemented in PeanutButter.DuckTyping.Shimming.DictionaryShimSham, and PeanutButter.DuckTyping.Shimming.ShimSham.
object PeanutButter.DuckTyping.Shimming.IShimSham.GetPropertyValue | ( | string | propertyName | ) |
Gets a property value from the underlying object.
propertyName | Name of the property to get the value for |
Implemented in PeanutButter.DuckTyping.Shimming.DictionaryShimSham, and PeanutButter.DuckTyping.Shimming.ShimSham.
void PeanutButter.DuckTyping.Shimming.IShimSham.SetPropertyValue | ( | string | propertyName, |
object | newValue ) |
Sets a property value on the underlying object.
propertyName | Name of the property to set |
newValue | Value to set |
Implemented in PeanutButter.DuckTyping.Shimming.DictionaryShimSham, and PeanutButter.DuckTyping.Shimming.ShimSham.