Solved Getting count of Config?

Discussion in 'Rust Development' started by LaserHydra, Aug 3, 2015.

  1. How am I able to get the count of the Config? Like List.Count.
    But as the Config is of the type DynamicConfigFile and it can not be converted to a List<object> or Dictionary<string, object>, Config.Count does not work.
     
  2. DynamicConfigFile implements IEnumerable.
    So you can use extension method Config.Count() :)
     
  3. so as a method not a variable
    k