GetProperty() public méthode

public GetProperty ( object Instance, string Property ) : object
Instance object
Property string
Résultat object
 /// <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);
 }
 public object GetValue()
 {
     var bridge = new wwDotNetBridge();
     return bridge.GetProperty(this,"Value");
 }