Visual Studio Architecture Code Generation - Create List<type> rather than IEnumerable<type>
问题 Is it possible to configure an Association in a Visual Studio (2013) class diagram so that when the code is generated from it that it creates a property with type List<MyClass> or even ICollection<MyClass> rather than it's default of IEnumerable<MyClass> ? 回答1: Yes, it is possible to change the output. Visual Studio uses T4 templates to generate code from the Architecture tools. You can find the templates at C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft