Show / Hide Table of Contents

Struct Strings

Used for function parameters to specify multiple strings. Callers can pass a string like "One|Two|Three" or string[] or List<string> or some other IEnumerable<string>. Has implicit conversions from these types. Can be assigned collection initializer like ["a", "b"]. Can be used with foreach.

public struct Strings : IEnumerable<string>

Namespace: Au.Types
Assembly: Au.dll

Methods

Name Description
Create(ReadOnlySpan<string>)

Returns new(span.ToArray()).

ToArray()

Converts the value to string[]. Note: don't modify array elements. If the caller passed an array, this function returns it, not a copy.