Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal static List<T> GetListFromMember<T>(ILSObject Obj, string MemberName, string LSTypeName, params string[] Args)
- {
- if (Obj == null || !Obj.IsValid)
- return null;
- LavishScriptObject Index = LavishScript.Objects.NewObject("index:" + LSTypeName);
- string[] allargs = PrefixArray<string>(Index.LSReference, Args);
- LavishScriptObject retval = Obj.GetMember(MemberName, allargs);
- if (LavishScriptObject.IsNullOrInvalid(retval))
- return null;
- return IndexToList<T>(Index);
- }
Add Comment
Please, Sign In to add comment