Skip to content

Iterator的int是否應該為string? #3

@zamhsu

Description

@zamhsu

此處的型別應該是string
經測試,使用int會出例外狀況

int i = (int)iterator.GetCurrent();

因為ConcreteList內部的_collection是string陣列

_collection = new string[] { "A", "B", "C", "D" };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions