Guest User

Untitled

a guest
Jun 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. internal static List<T> GetListFromMember<T>(ILSObject Obj, string MemberName, string LSTypeName, params string[] Args)
  2. {
  3. if (Obj == null || !Obj.IsValid)
  4. return null;
  5.  
  6. LavishScriptObject Index = LavishScript.Objects.NewObject("index:" + LSTypeName);
  7.  
  8. string[] allargs = PrefixArray<string>(Index.LSReference, Args);
  9.  
  10. LavishScriptObject retval = Obj.GetMember(MemberName, allargs);
  11.  
  12. if (LavishScriptObject.IsNullOrInvalid(retval))
  13. return null;
  14.  
  15. return IndexToList<T>(Index);
  16. }
Add Comment
Please, Sign In to add comment