GetProperty() public method

public GetProperty ( object Instance, string Property ) : object
Instance object
Property string
return object
示例#1
0
 /// <summary>
 /// Sets the Value property from a property retrieved from .NET
 /// Useful to transfer value in .NET that are marshalled incorrectly
 /// in FoxPro such as Enum values (that are marshalled as numbers)
 /// </summary>
 /// <param name="objectRef">An object reference to the base object</param>
 /// <param name="property">Name of the property</param>
 public void SetValueFromProperty(object objectRef,string property)
 {
     wwDotNetBridge bridge = new wwDotNetBridge();
     Value = bridge.GetProperty(objectRef,property);
 }
示例#2
0
 public object GetValue()
 {
     var bridge = new wwDotNetBridge();
     return bridge.GetProperty(this,"Value");
 }