/// <summary> /// Gets the value of a field or property /// </summary> /// <returns> /// The value (a primitive type value, a RawValue instance or a RawValueArray instance) /// </returns> /// <param name='name'> /// Name of the field or property /// </param> public object GetMemberValue(string name) { object res = source.GetMemberValue(name, options); RawValue val = res as RawValue; if (val != null) { val.options = options; } return(res); }
/// <summary> /// Gets the value of a field or property /// </summary> /// <returns> /// The value (a primitive type value, a RawValue instance or a RawValueArray instance) /// </returns> /// <param name='name'> /// Name of the field or property /// </param> public object GetMemberValue(string name) { object res = source.GetMemberValue(name, options); RawValue val = res as RawValue; if (val != null) { val.options = options; } IRawObject raw = res as IRawObject; if (raw != null) { raw.Connect(session, options); } return(res); }
public object GetMemberValue(string name, EvaluationOptions options) { return(MtaThread.Run(() => source.GetMemberValue(name, options))); }