<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:21 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-276] BsonArray should have constructor/methods dealing with not-generic IEnumerable</title>
                <link>https://jira.mongodb.org/browse/CSHARP-276</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Lack of such a constructor and methods makes it difficult to create a BsonArray or add a range of values to an existing instance in PowerShell scripts. PowerShell V1, V2 does not support generics well.&lt;/p&gt;

&lt;p&gt;Perhaps, even in C# (at least before 4.0), with only System.Collection.IEnumerable at hand there may be similar difficulties. But I did not try that.&lt;/p&gt;</description>
                <environment>Windows PowerShell (for sure), C# (maybe)</environment>
        <key id="19973">CSHARP-276</key>
            <summary>BsonArray should have constructor/methods dealing with not-generic IEnumerable</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="nightroman">Roman Kuzmin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Jul 2011 16:39:51 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:16 +0000</updated>
                            <resolved>Fri, 22 Jul 2011 17:30:43 +0000</resolved>
                                    <version>1.1</version>
                                    <fixVersion>1.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="44172" author="nightroman" created="Sat, 23 Jul 2011 05:39:52 +0000"  >&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;Perhaps it make sense now to retire BsonArray methods dealing with IEnumerable&amp;lt;object&amp;gt; (constructor, Create, and AddRange), they all do the same job as the new methods with IEnumerable.&lt;/p&gt;

&lt;p&gt;Such a change is potentially breaking for existing assemblies that call one of IEnumerable&amp;lt;object&amp;gt; methods (I have not tried). But it should be enough simply to rebuild such assemblies from sources, source changes are not needed (I have tried to remove IEnumerable&amp;lt;object&amp;gt; methods in the driver sources and build after that).&lt;/p&gt;</comment>
                            <comment id="44072" author="rstam" created="Fri, 22 Jul 2011 17:30:43 +0000"  >&lt;p&gt;Added overloads of the BsonArray constructor and AddRange and Create methods that take a non-generic IEnumerable parameter. Also removed the BsonDocumentToBsonArray mapping in BsonTypeMapper because it conflicts with the new IEnumerable overloads (and it was a rather far-fetched mapping anyway).&lt;/p&gt;

&lt;p&gt;NOTE: this change is backward breaking only in the very remote case that you were using the BsonDocumentToBsonArray mapping of the BsonTypeMapper. If you were, just pass document.Values instead of document as the argument instead.&lt;/p&gt;</comment>
                            <comment id="43971" author="nightroman" created="Fri, 22 Jul 2011 07:15:29 +0000"  >&lt;p&gt;It is good to know that PowerShell is not forgotten. With MongoDB + C# driver + PowerShell a lot of data-oriented tasks become ridiculously easy (RDBMSs normally require more knowledge and skills). PowerShell is preinstalled and ready to use in latest Windows versions. For some audience it might be the only programming tool practically available, e.g. for system administrators, casual users, not programmers per se.&lt;/p&gt;</comment>
                            <comment id="43822" author="rstam" created="Thu, 21 Jul 2011 17:03:09 +0000"  >&lt;p&gt;These were originally left out because they require mapping each value from type object to BsonValue at run time (and the generic types allow us to map at compile time). But that was before we made being Powershell friendly a priority. I will investigate.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrh8o7:</customfieldvalue>

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