I would use a List if you need a dynamically sized array:
List<string> ls = new List<string>();
ls.Add("Hello");
More Related Contents:
- Writing to txt file reach out of memory ? C# [closed]
- How to get the type of T from a member of a generic class or method
- How do I prevent and/or handle a StackOverflowException?
- Nested using statements in C#
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- How to calculate distance similarity measure of given 2 strings?
- Why is JsonRequestBehavior needed?
- Transparent background image for Form – Smooth edge shape for the Form
- Why are unsigned int’s not CLS compliant?
- Error – Unable to access the IIS metabase
- How big is an object reference in .NET?
- C# Ignore certificate errors?
- How can I convert BitArray to single int?
- High quality JPEG compression with c#
- Compile-time and runtime casting c#
- .NET Configuration (app.config/web.config/settings.settings)
- Proper localization of a WinForms application
- How to save shapes which I draw on a Panel as binary
- What really happens in a try { return x; } finally { x = null; } statement?
- Find out battery charge capacity in percentage using C# or .NET
- Most Useful Attributes [closed]
- Why do we need a private constructor?
- What is the maximum length of a C#/CLI identifier?
- WCF and interfaces on data contracts
- Built-in helper to parse User.Identity.Name into Domain\Username
- Are static variables thread-safe? C#
- What’s the purpose of GC.SuppressFinalize(this) in Dispose() method?
- Are there .NET Framework methods to parse an email (MIME)?
- How to create a form with a border, but no title bar? (like volume control on Windows 7)
- Use convolution to find a reference audio sample in a continuous stream of sound