title: Delphi RTTI using Method.Invoke for tkEnumeration Parameter
body: <p>How can I pass a tkEnumeration as an RTTI Parameter to Method.Invoke.</p>
  
  <p>I have tried</p>
  
  <pre><code>TMyEnums  =  (tsEnum1, tsEnum2);
  
  
  ParameterList : Array of TValue;
  
  lTypeInfo : PTypeInfo;
  
  
  lTypeInfo := TypeInfo(TMyEnums);
  
  ParameterList[0] := TValue.FromOrdinal(lTypeInfo, Integer(tsEnum1)); 
  
  Method.Invoke(Object, ParameterList);
  </code></pre>
  
  <p>Which fails.  Can Method.Invoke take a tkEnumeration parameter? 
  Even if it did work - in my application at run time I do not know the type of the parameter so I can't obtain lTypeInfo;</p>
  
  <p>Is there a way to obtain lTypeInfo from TRttiParameter?</p>
  
  <p>I can get it for TRttiProperty as follows:</p>
  
  <p>lTypeInfo := RTTIProperties[i].GetValue(SourceObject).TypeInfo</p>
  
  <p>Is there an equivalent for TRttiParameter?</p>