对于快速变化的业务规则,我将IronPython片段存储在XML文件中.到目前为止,这已经很好了,但我开始达到我需要更多只有一行表达式的地步.
问题是XML和重要的whilespace不能很好地协同工作.在我放弃另一种语言之前,我想知道IronPython是否有其他语法.
PowerShell中路径环境变量的等价物是什么?我想在启动控制台时自动包含msbuild.exe.
当我打电话给List<T>.Add(T)它时,抛出此异常:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.List`1.Add(T item)
at ConsoleApp5.Program.AddToList(Int32 seed)
Run Code Online (Sandbox Code Playgroud)
我还看到Enumerable.Any针对同一列表抛出此异常。