E
emma middlebrook
Hi
TextBox inherits the following property:
public string[] Lines {get; set;}
From experimentation, it seems every time you get the Lines property,
it hands out a reference to a new *copy* of the array of Lines. It
*doesn't* mention this in the documentation.
Am I correct?
Is this a general rule of similar .NET functions?
So, how can I directly manipulate the array's individual items? I
don't really want to get a copy, change it then pass it back (!!!) -
seems inefficient even in this day and age
Hope someone can clear this up for me.
Thanks
Emma Middlebrook
(e-mail address removed)
TextBox inherits the following property:
public string[] Lines {get; set;}
From experimentation, it seems every time you get the Lines property,
it hands out a reference to a new *copy* of the array of Lines. It
*doesn't* mention this in the documentation.
Am I correct?
Is this a general rule of similar .NET functions?
So, how can I directly manipulate the array's individual items? I
don't really want to get a copy, change it then pass it back (!!!) -
seems inefficient even in this day and age
Hope someone can clear this up for me.
Thanks
Emma Middlebrook
(e-mail address removed)