<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:24 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-637] Fluent Lambda Expressions Don&apos;t Resolve Interfaces</title>
                <link>https://jira.mongodb.org/browse/CSHARP-637</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;This was actually reported by MARCOSB on GitHub to me in the comments for a pull request I made here: &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/5a62ca86fba984803e445a1d182bc125a56c7714&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/5a62ca86fba984803e445a1d182bc125a56c7714&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;public interface IMyInterface&lt;br/&gt;
{&lt;br/&gt;
  string SomeField &lt;/p&gt;
{ get; set; }&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
public class MyClass : IMyInterface&lt;br/&gt;
{&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;BsonElement(&amp;quot;bla&amp;quot;)&amp;#93;&lt;/span&gt;&lt;br/&gt;
  public string SomeField { get; set; }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public class HelperClass&amp;lt;T&amp;gt;&lt;br/&gt;
  where T : IMyInterface&lt;br/&gt;
{&lt;br/&gt;
  public void DoSomething() &lt;/p&gt;
{
    var classMapForT = new BsonClassMap&amp;lt;T&amp;gt;();
    classMapForT.AutoMap();

    // This will throw an exception - but seems like a reasonable use-case, right?
    classMapForT.MapMember(t =&amp;gt; t.SomeField);
  }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;I believe it is a regression; I will issue a fix for this.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="57849">CSHARP-637</key>
            <summary>Fluent Lambda Expressions Don&apos;t Resolve Interfaces</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="optimiz3">Alexander Nagy</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Nov 2012 03:27:53 +0000</created>
                <updated>Thu, 20 Mar 2014 14:36:06 +0000</updated>
                            <resolved>Thu, 24 Jan 2013 16:46:31 +0000</resolved>
                                    <version>1.6.1</version>
                                    <fixVersion>1.8</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="248786" author="auto" created="Thu, 24 Jan 2013 16:44:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-10T22:29:07Z&apos;, u&apos;email&apos;: u&apos;optimiz3@gmail.com&apos;, u&apos;name&apos;: u&apos;optimiz3&apos;}
&lt;p&gt;Message: Fix &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-637&quot; title=&quot;Fluent Lambda Expressions Don&amp;#39;t Resolve Interfaces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-637&quot;&gt;&lt;del&gt;CSHARP-637&lt;/del&gt;&lt;/a&gt;: Fluent Lambda Expressions Don&apos;t Resolve Interfaces&lt;/p&gt;

&lt;p&gt;    Accidental regression from &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/5a62ca86fba984803e445a1d182bc125a56c7714&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/5a62ca86fba984803e445a1d182bc125a56c7714&lt;/a&gt; caused generic interface member mappings to throw.&lt;/p&gt;

&lt;p&gt;    Update - added code to handle non-trivial edge case of explicit interface implementations caught during code review of JIRA-637 and rebased off of latest master changes.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/6a37b6a811b0456125c7cbaf6a0ac527e694979e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/6a37b6a811b0456125c7cbaf6a0ac527e694979e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="211021" author="craiggwilson" created="Mon, 10 Dec 2012 13:46:23 +0000"  >&lt;p&gt;In code review.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="69118">CSHARP-708</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hrktvb:</customfieldvalue>

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