<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:17 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-953] Limited number of parameters in BSonConstructor with .NET 3.5</title>
                <link>https://jira.mongodb.org/browse/CSHARP-953</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;This issue has been posted on StackOverflow : &lt;a href=&quot;http://stackoverflow.com/questions/23093702/mongodb-c-sharp-with-driver-1-9-serialization-limited-number-of-parameters/23110359#23110359&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/23093702/mongodb-c-sharp-with-driver-1-9-serialization-limited-number-of-parameters/23110359#23110359&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The problem is that with .NET 3.5, I am not able to use custom BsonConstructor with more than 4 parameters, whereas if I use .NET 4.0 the issue is not here. I search a long time a workaround for this issue, and I dont have any idea of what causes this.&lt;/p&gt;</description>
                <environment>Windows 7, VS2010, MongoDB 2.6, .NET 3.5 project</environment>
        <key id="131486">CSHARP-953</key>
            <summary>Limited number of parameters in BSonConstructor with .NET 3.5</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="GuillaumeA">Guillaume Androz [X]</reporter>
                        <labels>
                            <label>Windows</label>
                            <label>bson</label>
                            <label>driver</label>
                    </labels>
                <created>Wed, 16 Apr 2014 13:14:24 +0000</created>
                <updated>Wed, 16 Apr 2014 13:33:58 +0000</updated>
                            <resolved>Wed, 16 Apr 2014 13:33:58 +0000</resolved>
                                    <version>1.9</version>
                                                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="551556" author="guillaumea" created="Wed, 16 Apr 2014 13:32:45 +0000"  >&lt;p&gt;Hi Craig.&lt;br/&gt;
I did not know this limitation in .NET 3.5. But anyway, it is possible for me to switch to .NET 4.0 and furthermore, I design my data in another way with embeded documents for convenience.&lt;br/&gt;
Thanks a lot.&lt;/p&gt;</comment>
                            <comment id="551548" author="craiggwilson" created="Wed, 16 Apr 2014 13:28:01 +0000"  >&lt;p&gt;In .NET 3.5, there are only 4 definitions of Func. with the maximally defined version having 4 parameters.  .NET 4.0 extends that number to 8, and .NET 4.5 extends that to 16.&lt;/p&gt;

&lt;p&gt;I guess we could define extra Funcs, but then people using .NET 4 with the driver would get conflicting types.  We could also define our own MongoFunc classes which go up to a high number of parameters, however .NET 4 has already solved this problem and our next driver version will require .NET 4.  I&apos;d suggest that you upgrade to .NET 4 if possible.&lt;/p&gt;

&lt;p&gt;Alternatively, it might be possible for you to define the Func delegate with the required number of parameters and the driver would find it at runtime. I haven&apos;t tested this so don&apos;t expect great results.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hry27r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>112857</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>