Class Objects Aren't Working Correctly?
Doesn't seem like anything is appending to the arrays. When i call it in the mainform. it doesn't pull anything. am i missing anything here?
My Auth Class Code Snippet from its Constructor
Main Form code snippet
8 Replies
you cant append to an array
arrays are fixed size
O_o
fairly sure your "append" is actually a concat and returns a new array, that you are promptly dropping
hmmm
the better solution is to use a
List<T>
and list.Add(...)
ok 1sec
let me take a look at an old project i did this way in
just doublechecked,
array.Append
is indeed Enumerable.Append
and returns the new sequence
public static IEnumerable<TSource> Append<TSource>(this IEnumerable<TSource> source, TSource element)
i used this instead
this approach should be a method built-in :picard_facepalm:
ty for the help effort tho
thread closing