Delphi Array vs C# Array

I have a function I wrote in Delphi which I would like to use in a C# application, the problem I have is with the following bit of Delphi code which simply sets a constant array of chars.

QuotedStringChars = [#0..#255] – [‘”‘, #13, ‘\’];

Letters = [‘A’..’Z’, ‘a’..’z’];

I have spent some time trying to find out how this should be done in C#. I ideally do not want to set each element of the array, but if this is the case and then I think Delphi has another advantage over C#.

Leave a Reply

You must be logged in to post a comment.