ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Bayon" <ibatis....@gmail.com>
Subject Re: Hey Guys - Another IBatisNet Demo App for VS.NET2005
Date Thu, 25 May 2006 17:41:21 GMT
I have done a unit test with a property override by new and haven't be able
to redo your issue.
Could you give me a unit test which fails for the current code.

Thanks
-Gilles

>   And DlegatePropertyGetAccessor.cs( line 64 ) and
> DelegatePropertySetAccessor (line 65):
>
> From:
>
>             PropertyInfo propertyInfo =
> _targetType.GetProperty(propertyName);
>
>
>
> To:
>
>             PropertyInfo propertyInfo =
> _targetType.GetProperty(propertyName, BindingFlags.Public |
> BindingFlags.Instance | BindingFlags.DeclaredOnly);
>
>
>
>             if (propertyInfo == null)
>
>                 propertyInfo = _targetType.GetProperty(propertyName);
>
>
>
> This has to do with ambiguous method exception when overriding a property
> with the new keyword:
>
> Details: http://blogs.msdn.com/thottams/archive/2006/03/17/553376.aspx
>
>
>
> Thanks,
>

Mime
View raw message