Remove property Length
Replace  LINQ exp with foreach()