<p>What is the syntax for placing constraints on multiple types?  The basic example:</p>

<pre><code>class Animal&lt;SpeciesType&gt; where SpeciesType : Species
</code></pre>

<p>I would like to place constraints on both types in the following definition such that <code>SpeciesType</code> must inherit from <code>Species</code> and <code>OrderType</code> must inherit from <code>Order</code>:</p>

<pre><code>class Animal&lt;SpeciesType, OrderType&gt;
</code></pre>

[{'answer_id': 46384, 'author': 'Darren Kopp', 'author_id': 77, 'author_profile': 'https://Stackoverflow.com/users/77', 'pm_score': 7, 'selected': True, 'text': '<pre><code>public class Animal&lt;SpeciesType,OrderType&gt;\n    where SpeciesType : Species\n    where OrderType : Order\n{\n}\n</code></pre>\n'}, {'answer_id': 46390, 'author': 'Ryan Lanciaux', 'author_id': 1385358, 'author_profile': 'https://Stackoverflow.com/users/1385358', 'pm_score': 4, 'selected': False, 'text': '<p>You should be able to go :</p>\n\n<pre><code>class Animal&lt;SpeciesType, OrderType&gt;\n    where SpeciesType : Species\n    where OrderType : Order {\n}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/46377', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/327/']