Class StringValueEnumerable
A IValueEnumerable<T> implementation, wrapping a System.String.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: MoreStructures.Utilities
Assembly: MoreStructures.dll
Syntax
public class StringValueEnumerable : ValueEnumerable<char>, IValueEnumerable<char>
Remarks
Useful when a System.String property/field should be equatable to an
For example, when a property or field is declared as
Constructors
| Improve this Doc View SourceStringValueEnumerable(String)
Builds a ValueEnumerable<T> around the provided stringValue
.
Declaration
public StringValueEnumerable(string stringValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringValue | The string to wrap. |
Remarks
Time and Space Complexity are O(1), as this constructor doesn't iterate over stringValue
.
Properties
| Improve this Doc View SourceStringValue
The System.String value underlying this IValueEnumerable<T>.
Declaration
public string StringValue { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
IEnumerable<>