/// <summary> /// Fills the list with components from given assembly. /// </summary> /// <param name="result">The result list.</param> /// <param name="assembly">The assembly with components</param> private void fillWithComponents(List <Instance> result, TypeAssembly assembly) { foreach (var componentInfo in assembly.GetComponents()) { var component = Context.Machine.CreateInstance(componentInfo.ComponentType); result.Add(component); } }