P
Paul E Collins
I plan to write a class representing a particular type of string from an
obsolete machine architecture. It involves a non-ASCII character set and
has some rendering quirks such as "characters" that expand to reserved
words when displayed.
If possible, I'd like my string class to behave like a value type
insofar as the standard C# string does. For instance, if someone passes
a MyString instance to another method, and that method changes
properties of the instance, I'd rather not have those changes propagated
back to the caller.
Is this feasible? If so, I'd appreciate any pointers on how to do it,
but I suspect that the C# string (as a built-in part of the language)
can probably take liberties that I can't.
Eq.
obsolete machine architecture. It involves a non-ASCII character set and
has some rendering quirks such as "characters" that expand to reserved
words when displayed.
If possible, I'd like my string class to behave like a value type
insofar as the standard C# string does. For instance, if someone passes
a MyString instance to another method, and that method changes
properties of the instance, I'd rather not have those changes propagated
back to the caller.
Is this feasible? If so, I'd appreciate any pointers on how to do it,
but I suspect that the C# string (as a built-in part of the language)
can probably take liberties that I can't.
Eq.