public TypedReference GetNextArg() { if (current >= arglist.Length) { throw new InvalidOperationException(Local.GetText("An attempt was made to read beyond the end of the list.")); } TypedReference result = new TypedReference(Intrinsics.CreatePointerToArray(arglist, current), Intrinsics.GetClass(typeof(object))); current++; return(result); }